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Ā® 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/