home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmger!edohwg!heinz
- From: heinz@edohwg.UUCP (Heinz Wrobel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Program Fragmenting Memory
- Message-ID: <heinz.02za@edohwg.UUCP>
- Date: 14 Aug 92 21:46:01 GMT
- References: <1992Aug9.023203.7467@ariel.ec.usf.edu>
- Organization: Edotronik GmbH
- Lines: 36
-
- In article <1992Aug9.023203.7467@ariel.ec.usf.edu> stelmack@eggo.tmc.edu (Gregory M. Stelmack) writes:
- >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
- >[...]
- >So, does anyone know of anything that might be causing this? I am using
-
- Assuming that your SW is running under 2.04 there are some things. The
- easiest example is system gadget images. They are allocated once on the
- first task frame who needs one and then they are cached for reuse. Let's
- assume your SW is the first to use a close gadget since you rebooted. Then
- munglist will show the image allocation for _your_ task name because the
- image was allocated on your task frame.
-
- This is true for _any_ cached information somewhere that was first
- allocated of _your_ task frame.
-
- So look what _is_ there in the memory and try to figure out what kind of
- structure or date it might be. Then you know what library did it.
-
- You can check if it is this kind of problem by restarting your program
- several times. There shouldn't be any additional _left_overs_ if it is this
- kind of cached information.
-
- >-- Greg Stelmack (stelmack@eggo.csee.usf.edu)
-
- --
- Heinz Wrobel, Edotronik GmbH (ECG018)
- FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
- Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
- "It's good to have a mouse, it's faster if you can do without one..."
- "He who doesn't develop with an A2024 doesn't know about font independent
- user interfaces..."
-