On Wed, 26 Jan 2000, Alexander Foborg wrote:
> How can i make a safe exit from my application? Is there way other than
> stopping the event-loop? Sometimes in error handling it is easier to just
> exit the application, than to return all the way back to the eventloop and
> make it exit.
> /Alex/ - lazy?
Here we go again..
Before this turns into another "you don't exit an app" war, let me refer
you to the threads that have already taken place on the list dealing with
this topic. Take a look at:
http://www.escribe.com/computing/pcpqa/index.html?by=OneThread&t=Ending%20an%20application
Basically, you don't ever "exit" a Palm app. What happens is that another
one just gets started. As this is happening your StopApplication()
function gets called, then the other app starts. There may be a *rare*
case where it makes sense to exit your app, but it's very unlikely that an
app will actually meet those criteria.
--
Brian Mathis
Direct Edge
http://www.directedge.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html