>I have a question about MemPtrResize.  According to the docs, it says "Call
>this routine to resize a locked chunk."  One of the return values is
>memErrChunkLocked.
>
>Does MemPtrResize expect a locked or unlocked chunk?


Either.  If the chunk is locked and you're trying to shrink it, no problem,
it just works in place and the fact that it was locked is irrelevant.

And if the chunk is locked but there's enough free space in memory after it
to grow as much as you requested, again no problem.

But if it has to move the chunk in order to resize it, and if the chunk is
locked, then it has to fail and return that error code.

-David Fedor
Palm Developer Support


Reply via email to