home *** CD-ROM | disk | FTP | other *** search
- From: martin@hpopd.pwd.hp.com (Martin Wink)
- Date: Thu, 13 Aug 1992 18:33:09 GMT
- Subject: Re: DLL trashing App's Data Segment?
- Message-ID: <-150959997@hpopd.pwd.hp.com>
- Organization: Hewlett-Packard ISG-SBU-PWD, UK.
- Path: sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!hpopd!martin@hpopd.pwd.hp.com
- Newsgroups: comp.os.ms-windows.programmer.misc
- References: <1992Aug12.145332.24382@ods.com>
- Lines: 19
-
- Scott...
-
- It's nothing as simple as the DLL using a lot of stack space for its
- local variables, & writing past the bottom of your application's stack.
- This would trash your application's static/global variables for you.
- A giveaway would be if the damaged memory locations appear to the end
- of your static data in the map file. Depending on how the DLL uses its
- local variables, it wouldn't necessarily trash contiguous chunks of
- memory, it could hit just the odd byte.
-
- Since DLL's don't work with stack checking you don't get the warnings
- that you would if your application's code overflows the stack. I only
- spotted this with one of our apps by stepping through the DLL & noticing
- that the stack suddenly expanded.
-
- suggestively yours........
- martin wink............
- HP Pinewood, UK.....
-
-