> Hello everyone, quick question
>
> <CODE>
>
> char ** memptr;
> memptr = (char**)MemPtrNew(sizeof(char*) * items);
> memptr[n] = (char *)MemPtrNew(StrLen("Some String") + 1);
> MemPtrFree(memptr);
>
> </CODE>
>
> Does this statement code free up all the memory that was allocated for the
> array of strings?
no - match your "new" with the appropriate "free". if you call new 4
times, you shuold call free 4 times..
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/