At 7:22 AM -0700 5/7/01, Michael S. Davis wrote:
>On Mon, 7 May 2001, Dave Lippincott wrote:
>
>> When the unit is reset, the memory is cleaned up.
>
>A fatal crash, normally results in a reset. Are you saying that any
>fatal crash will automatically take care of any memory leak problem?
Yes; the OS cleans up orphaned chunks during the boot sequence.
The only times memory allocated by your app will not be cleaned up is if 1.) you're
running OS 3.5.0 [because it has a bug that prevents the cleanup from happening
properly -- install System Update 3.5.2 or later to fix this little problem] or 2.) if
you change the owner of the allocated chunk to 0 [tell the OS it now owns it] via
MemHandleSetOwner or MemPtrSetOwner.
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/