If its a catastrophic failure, you could use ErrFatalDisplayIf and reset the
unit.  If that is too drastic, post an appstop event or a 'home' button tap.
Just be sure to let the user know what is happening.

----- Original Message ----- 
From: "Matt Graham" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 4:12 PM
Subject: how to exit()


> Let's say my program recognizes a (relatively) catastrophic state in
> which I want to just display an error message and exit. Is there an
> equivalent to exit() that I could call that would stop execution from
> where ever I call it?
>
> Thanks,
> matt
>
> -- 
> 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/

Reply via email to