At 8:45 AM -0800 11/2/99, Michael S. Davis wrote:
>Check available memory with 'info'.
>Run the app throughout the day.  Check 'info' again and
>verify that the same amount of memory is available. 

This will only tell you whether you're using up storage heap. If you create new 
records, this test will show storage heap being consumed, but this is normal.

What you want to check for if leaks in the dynamic heap. When your app quits, the OS 
cleans up after it, so leaks won't be obvious. You should still clean up yourself 
though!

The latest version of the emulator added a check for this, so just running your app 
together with the Launcher in the emulator with Gremlins should do the trick. You'll 
have to protect your app and any of its databases to prevent Gremlins from deleting 
your app.

I use wrapper functions around all Palm OS routines that allocate or free dynamic heap 
chunks. Although this is tedious, this allows me to discover not just that there is a 
leak, but where the chunk was allocated. When I mentioned this at PalmSource 99, Keith 
got the idea of adding support for this to the ever-improving emulator.
-
Danny Epstein, Applied Thought Corporation
Have friends with Palm organizers? Get BeamBooks!
http://www.appliedthought.com/beambooks

Reply via email to