This works nicely for me...
Here's the function call...
evt.eType = appStopEvent;
EvtAddEventToQueue( &evt );
-Rus
>-----Original Message-----
>From: Lurenzel [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 15, 2000 1:19 PM
>To: Palm Developer Forum
>Subject: Application doesn't shut down very gracefull.
>
>
>There are at least 3 ways to terminate the execution of an
>application in
>the emulator.
>1.) Reset 2.) Kill it 3.) Call the Menu
>
>I have the following code
>DWord PilotMain( etc, etc, etc)
>{
> Preliminarys
>
>EventLoop()
>StopApp()
>}
>
>void StopApp(void)
>{
>frmCloseAllForms();
>DmCloseDatabase(DatabaseHandle);
>}
>
>When I terminate the application using eighter of the methods above
>StopApp() is not called. I beleive this leads to memory leaks and other
>errors.
>
>How can I fix this?
>
>
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/