> Hi All,
> 
> What are the pros and cons of doing;
> 
>       CharPtr pTrunc = (CharPtr) MemPtrNew(textLen + 3); and then
>       MemPtrFree(pTrunc);
> 
> Versus doing;
> 
>       char strTrunc[MAX_LENGTH]; and
>       letting the system free this memory when the stack is popped at
> function end?
> 
> 
Besides allocating only the memory required does MemPtrNew have any other
advantages.  Is there something different about the palm OS that doesn't
work as well when doing things the old C style way?

> Thanks,
> Steve Seeley


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