Scott right.
You have two way to avoid this:
1) use ligament MemPtrResize - MemPtrNew, if first function fail, use second
(example you may see in NetSocket.c included into CodeWarrior SDK)

2) use functions MemHandleNew, MemHandleResize. Then when changing a size of
memory 'memory manager' will be able to find for suitable chunk.

Alexander Zuev


"Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote in message
news:56801@palm-dev-forum...
>
> > From: Jeremy Nuss [mailto:[EMAIL PROTECTED]]
> > my error is "memErrChunkLocked".
>
> Well, as documented, MemPtrResize always succeeds when shrinking the chunk
> but will successfully expand it only if there happens to be enough free
> space right after the chunk in the heap; otherwise it fails.  Is this your
> situation?
>
> -slj-
>
>
>



-- 
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