"Dr. S.L. Sanders" <s...@sanders-indev.com> wrote in message 
news:188...@palm-dev-forum...
>  A small 68000 program for my T5 would load and test normally under the 
> Palm OS Debugger. Closing the debugger would begin a normal soft reset of 
> the T5, but a fatal exception would occur just before the "Tungsten" logo 
> would normally appear. A warm reset would get past this, but tapping the 
> "Home" button would cause another fatal exception. Thus, a reset loop was 
> in force.
>  I found (by accident) that the recently-launched list (tap and hold the 
> silk-screened "Home" button) would appear without causing the fatal 
> exception, and -- I was lucky enough to find Resco Explorer in that list!
>  Resco Explorer allowed me to delete my test program, after which I could 
> complete a successful soft reset. (Without the accidental discovery of 
> Resco Explorer in the recently-launched list, I would have had no recourse 
> other than a hard reset.)
>  By a process of elimination, I found my programming error that had been 
> causing the problem:
>  I had placed the following code in my AppStop() routine,
>        if(hCel!=NULL) //If global hCel isn't NULL,
>          MemHandleFree(hCel); //  free it.
> but hadn't yet gotten around to assigning a value to the global MemHandle 
> hCel. As soon as I commented-out that code, the reset loop went away.
>  It's too bad the PalmOS permitted such an apparently-common error 
> (freeing an uninitialized memory handle) to lead to a situation that would 
> require a hard reset -- unless you're as lucky as I was.
> 2010may25(19:42)-sls


1. You may have been able to use the no-notify warm reset to avoid the reset 
loop.  This is a warm reset while holding the up arrow key, which tells the 
OS to not send the sysAppLaunchCmdSystemReset launch code when it boots. 
See "System Boot and Reset" in the Palm OS Programmer's Companion. That 
might have let you delete your app without crashing first.

2. It's an impossible task for the OS designers to conceive and prevent 
every possible way to crash the system...  And, when you're doing 
development, you should be prepared to hard reset the device at any time in 
the course of development.  A hard reset is really nothing to fear anyway, 
especially on the T5 where you can easily backup all the RAM databases to 
the internal flash drive with ease.

Regards,

-- 
David Thacker
http://www.SatelliteForms.net
The Premier RAD Tool for PalmOS & PocketPC



-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to