Jan Slodicka wrote:

there are situations when the activity of some OS "patches" such as
PiDirect, Tealscript, hacks etc. may negatively influence the active
program. Can somebody advice how to detect their presence? Knowing e.g. that
a warm reset was performed is an important information in this respect. (So
far I don't know how to detect it.)

I don't have a ready made answer, but just an idea I thought I'd share since nobody else has come up with anything.


You can detect a reset with notifications by trapping the appropriate launch code. Since you only want to detect the notification-less reset in your application when your app is launched normally (I presume...?), you should handle a reset with notifications. Then, you need to find a way to determine if it was reset since the last time you received that event (sysAppLaunchCmdSystemReset) or your install event (sysAppLaunchCmdSyncNotify).

You should be able to find a way to do that -- the Palm does various maintenece functions on a reset. Likely you can detect whether or not it has been done. One simple possibility would be to use the ticks since startup and the current time, comparing it to the time when you handled the rest code, but that may run into issues if the Palm runs a long time between resets (very likely). Hopefully you can find one that will work for you, or someone else will think of something.

Good luck.

-- Steven Fisher

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

Reply via email to