Hi everybody !
I've got a problem and I am unable to fix it.
Is as easy as when the app terminates, a "fatal exception"
(without any other message) dialog appears, so you've
got to reset the device. The problem arose, when I developed
a conduit, so when the user pressed the hotsync button in
the cradle and my application is terminating, the "fatal"
error appears.
I've tried sorting out where is the problem, and put some
alerts when the application began to execute the AppStop()
function. One alert when the app entered the AppStop function.
Another one when my laser device was closed (is a symbol device).
One more when all the databases are closed, and finally before
executing the "return" sentence (indicating that the end of the
appstop() function has been reached). Conclussion ?. The
application crashes after the last alert. That means that the
two last sentences to execute before crashing are just two
returns !! (The AppStop() return and the PilotMain() one).
It seems like the systems crashes when the Palm OS tries to take
the control before launching the hotsync. And I say BEFORE because
I get the same crash when I press the contrast button and then
one of the icons on the silkscreen, so I guess is not a
hotsync-launch related problem. Is a "exiting related" problem.
After the crash, user must reset the palm, then fires again
the application, can work without problems for around ten days or so
and ... system crashes again when attemping exiting the app.
I've read in the newsgroup that this kind of crashes are caused
by memory corruption. This could explain the "syncronous" behaviour
of the error. I mean, app doesn't crash, just after a reset. Crashes
after some days of intensive work !!... and however I am really lost.
Some interesting features of the application are:
Most of the working time I'm using the serial port to comunicate with
an external device (except when I syncronize it with a PC using
hotsync).
App makes massive reads and writes on some databases. (But no errors
appears when I close databases in the appstop() )
I open and close several times the laser device on the app (depending
what is the use of the active form). However when I finally close
the laser device and unload the laser library in the appstop(), no errors
appears.
Well, and that's all ! :)
I'm very sorry for the lenght of the message, but couldn't find out a
better way to summarize it without missing important (I guess) information.
I'll appreciate any kind of suggestion or idea. Also, if somebody has had
the same problem, would be very kind to share how to fix it ;) (but
I guess is HARD).
Anyway, thanks in advance.
Manuel C. Remacha.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/