Thanks a lot!! "Dave Carrigan" <[EMAIL PROTECTED]> ??????:[EMAIL PROTECTED] > > On Thu, Aug 14, 2003 at 12:53:10AM +0100, gamepower111 wrote: > > > In the FormHandleEvent function, i used the following codes, when the form > > can be closed correctly and return to the main form of the project. but if i > > exit the application, "memory leak" occured. If I delete the frmCloseEvent > > codes in this form, it works well. Who can tell me the reason? > > I have to use this event, because i have to free some memory which were > > allocated during the form runing. > > > > // the frmCloseEvent codes > > case frmCloseEvent: > > frmP = FrmGetActiveForm(); > > FrmEraseForm(frmP); > > handled = true; > > break; > > Don't set handled to true; it prevents PalmOS from doing some of its own cleanup. > > -- > 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 Crosby, Stills, Nash & Young - Drivin' Thunder (American Dream) > >
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/