You're creating a new MemHande for pFld2, but it may already have one - in which case you're simply letting it get lost when you set the new one, resulting in an unfreed handle existing when your app terminates.
Its best to capture the existing handle using FldGetTextHandle, and if its non-NULL, use MemHandleFree on it. Fields create and resize MemHandles as they need them, and you've assumed that the field doesn't already have one - which is only true if the Field has never had any text in it. On Wed, 26 Jan 2005 03:30:44 -0000, derricklyh3 <[EMAIL PROTECTED]> wrote: > Referring to the last way I used, why the simulator > alerting that there are unfreed chunk while quiting > the application? > > Thank you. > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
