> 1)    is there a function that calls the shutdown event?  ie,  if i'm
> looping through my event loop,  what can i call or what condition must i
> meet to cause the application to shut down?

The AppStopEvent may be generated by a couple of possible system
events (like pressing a hardware button or when launching another
application).

On the other hand you just can just "break" from your event loop.
Your application is over as soon as you leave PilotMain.

You also can enqueue an AppStopEvent, but you rarely want that.

> 2)    when i hit the app button (the one with the house) to shutdown my app,
> i follow my code in the debugger and all looks well,  but as soon as it gets
> out of my application it complains of a fatel exception.  i have closed my
> databases,  and barcode scanner,  but am thinking something else might not
> be happy i'm closing / shutting them down.  what are these possibilities?

In fact, your application will be "shut down" when you enter the other
application, not when lauching the launcher. The laucher itself is not
a real application (or at least it used to be).

Hope this helps,
        Holger Klawitter
--
Holger Klawitter                                     +49 (0)251 484 0637
[EMAIL PROTECTED]                             http://www.klawitter.de/


Reply via email to