Here are my thoughts on this:

"W.F. Ableson" <[EMAIL PROTECTED]> wrote:

> Though the hack may not be in effect at the time.  When the device is reset,
> Hackmaster asks if you want to reinstall your hacks.  Does hackmaster get
> invoked prior to any other "app" being launched at reset?

I'm not sure (since I don't have the HackMaster source code handy :-) 
but I would imagine that HackMaster is putting that prompt up in 
response to getting the SystemReset launch command. I don't think there 
is any way to guarantee that one app gets this launch command before 
any other when a reset happens.

Someone else (sorry, don't know who) wrote:

> my hack (for Hackmaster) needs to do some work (only setting some
> variables) when the Palm is reset. I tried to patch sysTrapSysReset
> but apparently this trap is only called when the Palm is reset
> programmatically (e.g. after a crash or when hitting the "Reset"
> button in some apps like Hackmaster). I have not yet found a way to
> react on 'paper-clip' resets.
> 
> OTOH, the documentation says about SysReset: "This routine is called
> when the user presses the hidden reset switch on the device." - But
> it does not.
> 
> (I am using a Palm III, OS 3.3)

What variables do you want to set? Something that you have saved in 
preferences, or in your own database? Or, are you trying to set some 
features? If the latter, then you need to do that work *after* the 
reset has finished, because a reset clears all features. A reset also 
undoes any and all trap patches. So, the only way you're going to be 
able to do this kind of work after a reset is to respond to the 
SystemReset launch command. Unfortunately, as you probably well know, 
hacks don't receive launch commands at all.

Mr. Keyes has made mention of some features in HackMaster 2 that will 
greatly help in situations like this. I hope we see it soon.

--
Roger Chaplin
<[EMAIL PROTECTED]>

-- 
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