Depending upon what you are trying to do, you might start zeroing memory
a lot. If certain low memory locations are zeroed, the device will do a
cold reset when it next is reset.

To self-delete your app takes more code, but is much less tricky and
quite doable, pre-OSv5. Code to do this has been posted at some time or
another in the past.


Ryan Dugan wrote:
> 
> Disregarding the 'bad idea' comments and such... :)
> 
> Has anyone done a software implemented hard reset?  I have seen the
> SysColdBoot function in the OS4.0 code, but i only have 3.5 and
> earlier OS's to test on. I assume they are the same, but trying
> SysColdBoot(Null, 0, NULL, 0, 0) on my 3.5.2 device causes a Fatal
> Exception.  Is there some setup required leading up to the SysColdBoot?
> 
> In addition, I read that SysColdBoot will bring up the hard reset
> dialog ('delete all data? press up for yes...') - is this true, and if
> so, is there another function/trap called after that prompt, which i
> could use instead?
> 
> thanks,
>   --ryan

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

Reply via email to