On Wed, Oct 01, 2003 at 03:02:30PM -0400, Mathew Parker wrote: > I ran into similar problems when creating dynamic object lists. I > implemented long (dynamic) strings the same way. > > Use MemHandleNew and MemHandleFree instead of MemPtrNew and MemPtrFree. > When you need to resize the piece of memory, call MemHandleResize.
This advice will do absolutely nothing to solve the original poster's problems. Simply changing the code to use MemHandleNew will not magically fix the logic bugs that were causing the problem. There are a few reasons to choose MemHandleNew over MemPtrNew, but the ability to resize handles is not one of them. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Red Rockers - Dreams Fade Away (Good As Gold) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
