just change the event loop to not end when the event exit (or whatever)
occours to something like (i==1).... just have i global (or exit or whatever
the name will be) and when a tap is made anywhere in the program you can
change that value and make it exit.
-----Original Message-----
From: Bob Ebert <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Cc: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Thursday, January 27, 2000 6:15 AM
Subject: RE: Safe exit from application
>At 2:08 AM +0100 27-01-00, Scott Johnson (WA) wrote:
>>It's Palm VII Clipper. The Back (arrow) button at the top of the screen
>>takes you all the way "back" to the launcher. Heh heh. :-)
>
>But that makes sense, since the launcher is also the master list of PQAs.
:-)
>
>Anyway, if you want to 'exit' an app by launching the launcher, that's
>pretty easy, just call UIAppSwitch and specify the launcher.
>
>Of course, you still have to run your own event loop until you get the
>appStopEvent, so it's no help for the original poster's question which was
>'how do I bail out in the case of an error?'
>
>How the built-in apps bail out in the case of an error is with
>ErrFatalDisplay or ErrFatalDisplayIf. These offer the only 'true' error
>recovery, which is to reset the device. Just exiting your app won't help
>if you've made a truly bad error, because you'll probably have trashed the
>heap so the next app to run will crash instead. ...so you may as well just
>tell the user and let them reset.
>
>
> --Bob
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html