I bound my application to hard button 1. The application starts when the
button is pressed on both the emulator and the Palm device.
During sysAppLaunchCmdSystemReset, I enqueue a keyDownEvent (I also tried
enqueing an appStopEvent, then a keyDownEvent). I assign ownership of the
pointer(s) to the system. I still get writing to NULL memory errors. I
will try setting an alarm.
Any ideas or explanation of what occurs during reset would be appreciated.
Incidentally, after reset, hard button 1 is mapped back to the calendar on
the Palm device. It remains mapped to my app on the emulator.
TIA,
Steve
> -----Original Message-----
> From: Tom Zerucha [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 17, 2000 11:52 PM
> To: Palm Developer Forum
> Subject: Re: Starting Application after reset
>
>
> 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
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html