>I'm being very confused.  I thought this code was OK, but I keep
>getting memory leak errors.  I've run this past the POSE gremlins
>using various debug ROMs and I keep getting the same result, so I
>don't think it is the fault of the OS, either.
>

I think your problem is that you're not closing the form properly on exit.
According to the log file the memory leak occurs with memory assigned in
ResLoadForm() (called from FrmInitForm()).  This is because you're not
closing the form properly before exiting the application.  What you should
do is call FrmCloseAllForms() when you handle the appStopEvent in your
PilotMain function.


Cheers
Russell




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to