home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!caen!uflorida!usf.edu!eggo!stelmack
- From: stelmack@eggo.tmc.edu (Gregory M. Stelmack)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Program Fragmenting Memory
- Message-ID: <1992Aug9.023203.7467@ariel.ec.usf.edu>
- Date: 9 Aug 92 02:32:03 GMT
- Sender: news@ariel.ec.usf.edu (News Admin)
- Organization: University of South Florida, Department of Computer Science and Engineering
- Lines: 24
-
- I've been trying to track this problem down for two days now, so I ask here in
- case it has to do with something outside my code.
-
- My latest project has been fragmenting memory, and leaving two small chunks
- behind. Running MungWall & MungList (thanks for Sushi!) reveals two tiny
- chunks unfreed by my task -- sizes $0a and $a8. Anyway, I wrote my own
- wrappers for AllocMem and FreeMem that track the size and location of my
- allocations, and replaced all my calls with these wrappers (searching every
- source file to make sure I got them all). When I run with these, I still
- lose memory, but all my Allocs are properly matched by same-sized Frees
- (and MungWall does not complain). Also, neither address for the fragments
- matches any of my allocations.
-
- So, does anyone know of anything that might be causing this? I am using
- SAS/C 5.10b, and will call SAS Monday to see if there might be something
- with their startup/shutdown code, but in the meantime am asking here.
- Any ideas? Anyone know of any other tools that might help me track this
- down?
-
- --
- -- Greg Stelmack (stelmack@eggo.csee.usf.edu)
- -- FullTime Grad Student, PartTime Amiga Salesman, PartTime Amiga Developer
- -- Author of: Spades, Pro Port Analyzer Plus, more to come...
- -- DISCLAIMER: The opinions reflected here are mine and mine alone.
-