At 11:05 AM 11/12/2003, kshaff03 wrote:
I am having some confusion about the difference between these functions.

Does MemHandleUnlock free the chunk of memory too?
When a Chunk of memory is unlocked, is it able to be used  by the operating
system and future MemHandleNew() calls, or does it need to be freed too?

No. You need to call MemHandleFree() to free the chunk. Unlocking it just put it in a state where the OS can move the memory to another location on the device if needed, usually to make room for other memory allocations.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to