All applications are notified on a soft reset using a launch code. Check the
docs for the exact name of the launch code. There are some limitations.
First, on a hard reset (reset with power button pressed), all applications
in RAM are deleted, so your application won't be around to delete any
databases, but neither will the databases, so that's fine. Second, on a
no-notify reset (reset with up button pressed), none of the applications get
the reset notification launch code. In general, it's very important that the
code you run in response to the reset launch code be robust and error free.
If you crash, the device will appear to be completely frozen, and not
responsive to a soft reset (i.e. a reset without pressing any buttons). Most
users will then have no choice but to hard reset the device, losing all
their data. Developers in the know will just use a no-notify reset, delete
the offending application, and then soft reset. Also note that you don't
have access to your application's global variables when handling this launch
code. To verify that you're not using globals in this launch code, try a
soft reset with your application installed, but with some other application
running.
-- 
Peter Epstein

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to