You could also set a global variable that says 'stop' and check it in your main app loop.
My guess is that your card removal handler is destroying something that also gets destroyed by your main app. Have you tried the 'step through exit code' step I mentioned. You don't have to step through your whole app, just put the breakpoint on the end of your PilotMain. -----Original Message----- From: Pascal LEVY Date: 3/12/04 6:17 am To: Palm Developer Forum Subj: Re: App crashes after PilotMain terminated... > If the app gets killed by clicking the 'home' button, it just terminates > without problems. Then, just enqueue a 'home' button into the event queue instead of posting an appStopEvent... Pascal -- 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/
