"Charles Rezsonya" <[EMAIL PROTECTED]> wrote in message
news:17404@palm-dev-forum...
> this call says it resizes a locked chunk,  yet i am getting an error
saying
> that it fails because the chunk is locked.  why?

MemPtrResize can be used to resize chunks allocated with MemPtrNew or chunks
allocated with MemHandleNew and then locked. The former is typical. In both
cases, MemPtrResize is only guaranteed to work if the chunk is being made
smaller. If the chunk is being made larger, there must either be free space

after it, or there must be movable chunks after it. If there's a non-movable
chunk after it, you get an error saying that a chunk is locked. This doesn't
refer to the chunk you're resizing.

In general, I recommend using handles if you're going to be doing any
resizing.
--
Danny Epstein
OS Engineer, Palm Inc.


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