I gather there are two ways of handling CharPtr's:
VoidHand JoeShmoeH;
CharPtr JoeShmoeTxt;
MemHandleNew JoeShmoeH(JOE_SIZE);
JoeShmoeTxt = MemHandleLock(JoeShmoeH);
and
CharPtr JoeShmoeTxt[JOE_SIZE];
Now my question is this: in the first case, one simply releases the
memory when one finishes with:
MemHandleUnlock(JoeShmoeH);
MemHandleFree(JoeShmoeH);
How do you assure that the memory in the second case is released and
not leaked?
--
----------------------------------------------------------------------
Michael Hutchens PregCalc 3.0 Professional:
[EMAIL PROTECTED] http://www.thenar.com/pregcalc
FloChart:
Please quote previous http://www.thenar.com/chart
correspondence when discussing Ranson:
technical support issues. http://www.thenar.com/Ranson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/