Is it really possible to set up CW to debug an application if it crashes before normal launch? Not only can I not find any place to set the launch code, but I can't see how CW would allow me to debug an app that crashes before it gets fully installed in POSE via HotSync.
>From: "Palm Guy" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >Date: Tue, 24 Sep 2002 00:52:23 +0000 > >I'll try this but: >How does one set sysAppLaunchCmdSyncNotify as the launch code? I can't find >this in CW. >Also, the CW debugger is a bit of a mystery to me. How exactly doI step >thru the code? > > > >>From: Ben Combee <[EMAIL PROTECTED]> >>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >>To: "Palm Developer Forum" <[EMAIL PROTECTED]> >>Subject: Re: PLEASE help! - hotsync bus error & MemoryMgr error >>Date: Mon, 23 Sep 2002 19:36:37 -0500 >> >>At 12:27 AM 9/24/2002 +0000, you wrote: >>>I am still trying to debug the error that I was getting before (see prev >>>post, MemoryMgr.c line 4390 Invalid Handle, no responses yet!) >>> >>>I have set up POSE to do a hotsync, and I am installing my app using >>>hotsyn to POSE. At the end of the HotSync operation, I get an error that >>>looks something like this: >>> >>>"Fatal error; Application <appname> has just read from memory location >>>0x8000026C2, which is not in RAM or ROM, casuing a bus error." >>> >>>I can't for the life of me figure out why this is being caused, since >>>this occurs as HotSync ends. In other words, I have not even launched my >>>app, how can it be reading anything?! >>> >>>My app is written in C++ using CW. The total size of the PRC file is >>>134K. Is it too big? I also have some global objects where the >>>constructors of these objects call some functions to set screen depth >>>depending upon device capabilities. Could this be the problem? Could it >>>be a problem withj my app preferences? I'm really out of ideas. >>> >>>PLEASE someone tell me what could be causing this. I am guessing that >>>this is the same thingthat is causing my MemoryMgr.c Invalid Handle error >>>as well. >> >>Actually, your application has been launched. At the end of the HotSync, >>Palm OS launches your application with a >>sysAppLaunchCmdSyncNotify launch code to give it a chance to handle any >>tasks that need to happen on being installed to a device. You don't get >>this code when your application has been installed by the CW debugger. >> >>One way to figure out your crash is: >> >>In the CW Palm OS debugger settings, pick this as your launch code, then >>when your application stops at the start of PilotMain, open the >>View/Registers window and change the A5 register to "0xFF000001"... this >>will cause you to get a bus error if you try to access any global >>variables. >> >>Now, step through your code, and it should become obvious when your code >>is misbehaving. >> >>-- >>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/ > > > > >_________________________________________________________________ >Join the world�s largest e-mail service with MSN Hotmail. >http://www.hotmail.com > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/support/forums/ _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
