Is there anything tricky which must be done to a pointer before it can be
resized? I have a problem in my code which involves a MemPtrResize call
failing due to the memErrChunkLocked error. Just to test this I even created
simplified code like:

uchar *buf = MemPtrNew(128);
if (MemPtrResize(buf, 140) == memErrorChunkLocked)
    foobar();

and even this appears to fail due to the chunk locked error. I tried putting
a MemPtrUnlock(buf) in before the resize, but it still appears to fail. Can
anyone enlighten me on the correct procedure for allocating and resizing
pointers? (I'm aware of MemHandles but in this instance would much prefer to
use MemPtrs).

thanks for any assistance.

Rhys.



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

Reply via email to