> Suppose if i am doing
>
> MemHandle strH = MemHandleNew (maxSrtIToALen);
> str = MemHandleLock (strH);
> // something with str;
> //No MemPtrUnlock (str);
> //instead
> MemHandeUnlock (strH);
>
> Then do I still need to free memory by using
> MemHandleFree (strH);
> or it is only when I use MemPtrUnlock (str);

you don't need to use the MemHandleFree/MemPtrFree calls because of locking
a handle, but because you allocated memory with MemHandleNew/MemPtrNew. if
you don't free the allocated memory, the emulator will report a memory leak.

markus dresch (www.palmside.com)



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

Reply via email to