> From: Jeremy Y.
>
> Do I need to free all the pointer and handle at appStop routines?
Or sooner. Whenever you use MemPtrNew or MemHandleNew, you should use
MemPtrFree or MemHandleFree when you are done with the memory.
> Do I need to assign all the global variables to NULL?
Only if you want to. Sometimes it helps your program logic.
> Is it right once an application exit all the memory used by the
> variables will be released automatically by the OS?
Normally, yes. However, if you set the owner of a memory block to 0, then
the system owns it and it won't be released when your app exits.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/