Miken wrote:

if dynamicMemory = 60K,Can I call MemPtrNew(60*1024)?
How do palmos handle fragment?

Well, the third parameter to MemHeapFreeBytes is a pointer for returning the maximum free chunk size. This is the maximum amount that you can allocate with MemPtrNew/MemGluePtrNew/MemHandleNew. If there's not enough space for your request, you can try calling MemHeapCompact to free up more space.



Regards -Laurens

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

Reply via email to