On Nov 29, 2006, at 3:31 PM, Reynaldo H. Verdejo Pinochet wrote:
Im confused by the whole handle issue, iirc if I call MemHandleNew I should latter call MemHandleFree when im not going to need that movable chunk anymore. is this correct?
Yes, unless some function takes control of the memory chunk (see the docs for each). Contrapositively, some functions will allocate a memory chunk and return it to you, and you must deallocate the chunk when you're done. You have to read the docs for each function. That's life when programming in C.
DmNewRecord allocates memory in the storage heap, not the dynamic heap, so you never call MemHandleFree for such chunks.
Doug Reeder Cognitive & Systematic Musicology Lab OSU School of Music -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
