According to the documentation (API docs) MemHandleNew() and MemPtrNew() call MemHeapCompact() and you should not have to do it yourself. However, I am not sure if BmpCreate() calls MemPtrNew() or MemHandleNew() but I imagine that the underlying memory management would infact call this if the heap was fragmented.Second, you can defragment the memory using the api call: MemHeapCompact(MemHeapID(0,0)); MemHeapCompact(MemHeapID(0,1));
Just a thought!
Brad
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
