On Thu, Feb 10, 2000 at 02:18:20PM -0500, McMicken, Steven wrote:
> I am trying to get my application to launch after a soft reset.  In handling
> the sysAppLaunchCmdSystemReset command, I have tried SysUIAppSwitch,
> SysAppLaunch, and AppLaunchWithCommand.  When the parameter block pointer is
> required, I have tried passing NULL, and also have allocated memory and
> assigned pointer ownership to the system using MemPtrSetOwner.  The errors I
> get vary, either writing to NULL, a bus error, or TRAP$8.
> 
> I have started to look in Preferences.h to see whether I can set something
> in the system preferences to cause the application to restart.  Any help or
> ideas would be appreciated!

If you bind the application to one of the "buttons" (I think including
one of the hotsync buttons), you should be able to Queue an event for
that character when you get "reset" so it will be seen when the
prefrences panel comes up.  This may not work if the Event queue is
purged.

The alarm won't work directly (since it too is restricted), but could
queue the character.

Another possibility is to call your app (or one that links to it)
"Preferences" (or whatever it is called) assuming that the initial
launch of the Prefs app is done by name and the ram overriding flash
databases still holds.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to