Tim Astle wrote in message <11681@palm-dev-forum>...
>
>Ahh, a simple one :-)
>
>MemPtrFree(JoeShmoeTxt);  // Which is basically the equivalent of C's
>free(JoeShmoeTxt);
>

You really don't want to do a "free" on an array allocated on the
local stack.  Use MemPtrFree() only on the one you allocated
with MemPtrNew ... not the one you declared explicitly as an
array of char.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!





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