> From: Bob Whiteman [mailto:[EMAIL PROTECTED]] > It is my understanding that [...] if you use MemPtrFree() with > MemHandleNew() the OS has to call MemPtrRecoverHandle() and then > call MemHandleFree() for you. It still works but it takes more time.
This is a case where access to the OS source would be very helpful to you. The memory manager source shows exactly how allocation and deallocation works. > If I'm going to bother making a handle I allocate it in database > memory using DmNewHandle() [...]. The drawback is that I have to > use DmWrite(), but there's reasonable ways to manage that. This is an especially handy trick when allocating memory for fields, since fields do support using write-protected storage memory. -slj- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
