Re: HotSynk trouble
On Thu, 14 Aug 2003 10:19:00 +0200, Eugene wrote: > > 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. > > When we do this on emulator it works ok. It also works when we debug > program on Palm throuh CW. just to clarify your "When we do this on emulator it works ok" sentence: you mean that if you *sync* with the emulator you don't see this problem? Or do you mean you drag&drop the prc onto the emulator and it works fine? did you try to sync with the simulator? Maybe your problem only shows up on OS5 devices. Best regards, Sebastian -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: HotSynk trouble
> -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/
Re: HotSynk trouble
At 03:19 AM 8/14/2003, Eugene wrote: 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. When we do this on emulator it works ok. It also works when we debug program on Palm throuh CW. Sounds like you're not handling a launch code correctly and trying to access global variables when they aren't available. The CW debugger can show you the problem. In the Palm OS Debugging panel, tell it to "launch as a subroutine", and use the launch code sysAppLaunchCmdSyncNotify. This will simulate the launch code that gets sent to your app after it is HotSync'd to the device. You should be able to see the place where your code does wrong. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/