I was also experiencing that problem.  It turns out that part of the hotsync process 
actually runs the program when it gets installed.  The problem lies with global 
variables.  If you attempt to access any global variables at this point, they don't 
exist and the program crashes.  I was creating an instance of a class without checking 
the current status of the app.  When I moved the creation code under the 
SysCmdAppLaunch (can't remember the actual name of this, I don't have to look at it in 
any of my projects)in the applicationStart function, the crashing went away.  

So I would suggest you make sure you aren't accessing globals without first making 
sure it is ok to do so. 
[EMAIL PROTECTED] wrote:
> Hello,

Back in July, Martin van Velsen sent the following messages to the Palm 
Developer's Forum. I did not see a resolution to this, but we are 
encountering the same kind of behavior on a Palm III and a Palm Pro. The 
most curious thing is that the error seems to occur at the end of 
hotsync, during the "cleaning up, please wait" message. We put code in 
our application to display an alert at the very beginning of our 
application, and the fatal exception occurs before this alert appears. 

Similar to Martin's problem, the code works in the Emulator in all the 
Roms we've tested. We're developing on Mac with CodeWarrior. Our 
application is a multisegment app, and we've checked that each segment is 
less than 64k, and that pilotmain and MSL runtim PalmOS library are in 
the first code segment.

The release build of our app does not seem to exhibit this problem, and 
we are able to debug the application on a real device from codewarrior. 
It seems to be only hotsync that has the trouble.

--Catherine E. White
  www.llamagraphics.com

----------Prior message from Martin:

Date: 20 Jul 1999 10:09:47 -0700
From: [EMAIL PROTECTED]
Subject: Fatal Exception Install App

Hi all,

I've recently taken up PalmPilot programming using gcc under windows
95/NT. I'm using the Emulator to test the app against a variety of
debug ROMS. Sofar the app has been working fine. Today I tried 
installing the .prc file on a Palmpilot Professional and a PalmPilot V
On both machines the hotsync failed with a fatal exception on the
PalmPilot. The professional version worked after a hard-reset, the
Palm V refused to function even after a hard-reset. Any clues what's
going on here ?

Martin

(...snip...)


Sorry I meant soft-reset instead of hard-reset of course.

Martin

+----------------------------+--------------------------------------+
|      Martin van Velsen,    | Robotics Institute (RI,CIMDS),       |
| email: [EMAIL PROTECTED] | Carnegie Mellon University           |
|       [EMAIL PROTECTED] | www: http://kip.sateh.com/~martin    |
|        [EMAIL PROTECTED] |      http://www.sis.pitt.edu/~vvelsen|
+----------------------------+--------------------------------------+

---End of CEW message------------


Reply via email to