At 11:57 AM 6/20/2004, you wrote:
I'm calling MemPtrGlueNew to allocate a heap of 620K or so. My device lists 3 heaps at runtime:

0: 1,213,004 bytes
1: 15,394,408 bytes
2: 40 bytes

When I call MemPtrGlueNew it allocates from heap id 0 which is ok. But can I tell OS5 that I want it to use heap 1 which obviously has more memory? I ran into the problem where the first allocation in 0 is fine, but a second allocation failed. If I could switch to heap 1 that would be better. Is that possible or does MemPtrGlueNew only use heap 0?

You can't. Heap 0 is the dynamic heap, heap 1 is the storage heap. See my reply to you on tools-forum.



-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to