> -----Original Message-----
> From: Eugene
> Sent: Thursday, August 14, 2003 1:19 AM
> 
> 
> Hello,
> 
> We are developing testing program on CodeWarrior 9.0.
> 
> When we try to install prc file to Palm M550 it stops during 
> HotSync operation.
> 
> And it's written "cleaning up" on the palm screen. And then 
> only hard reset helps.

There are certain launch codes that HotSync broadcasts to your app
during and after a HotSync.  If your app does not properly handle these
launch codes (e.g., it tries to access globals, or in C++ land, it tries
to call virtual functions or access a static member variable), then it
will crash.

sysAppLaunchCmdHandleSyncCallApp is one such launch code, as is
sysAppLauncCmdSyncNotify.

Make sure you're hadling launch codes properly.  One test is to go into
the Launcher, and then do a 'find' for an arbitrary string of text.
Palm OS will eventually issue your app a sysAppLaunchCmdFind, which is a
good (but not exhaustive) way to test whether your app can handle launch
codes without blowing up.

> When we do this on emulator it works ok. It also works when 
> we debug program on Palm throuh CW.

You must mean the Simulator?  So you set up the Simulator to do a
HotSync ( http://tinyurl.com/k0v0 ), established a profile with an
initial HotSync, used the Install tool to install your PRC to that
profile, and then did a follow-up sync to install it, and it crashes?

-Jeff Ishaq


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

Reply via email to