As part of a program's shutdown code, just before returning to the OS for the next app to be launched, it will go through and release all dynamic heap chunks with the owner ID of the program. This doesn't affect storage heap memory and doesn't free chunks where you've explicitly set the chunk ownership to a different ID.
On 3/26/06, Tom Frauenhofer <[EMAIL PROTECTED]> wrote: > At 03:15 AM 3/26/2006, "Anand Kale" <[EMAIL PROTECTED]> wrote: > >Hi, > > > >Even after optimising the application, I have few memory leaks which I > >have ignored currently. > > This is not a good thing to do. > > >Is there such a thing in palm application to exit the application ? I > >guess AppStop handles that and I can release the memory allocated > >there .. In case there some memory leaks, when they are released back > >to the system, after power off, soft reset, hard reset .. > > Memory will be released back only on resets > (soft/hard/warm/etc.). There really isn't a > "power-off" state, it's more of a dormant/sleep state. > > One of the "slams" at Palm OS is that it doesn't > have a memory manager like more "modern" > operating systems. I look at it more as the > rules you have to follow - you have to clean up > memory. If you don't, the device may get into a > state where there is not enough memory to run other applications. > > The Palm OS Emulator provides some good feedback > on where you are leaking memory in the logs, so > you can figure out how to clean up the leaks properly. > > > ---- > Tom Frauenhofer, [EMAIL PROTECTED] > Palm OS(r) Certified Developer > http://www.beret.com > My Blog: http://tomfrauen.blogspot.com > > > -- > For information on using the PalmSource Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
