Thanks everyone for the help on this..

The utility was very helpful and Andre's suggestion regarding startup code
in first segment turned out to do the trick. Had a source file with startup
code in the third segment..

Thanks again for the assistance..

Jim





"Andre Schoorl" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

My guess is that your reset and HotSync handlers are calling code outside of
the first segment of your application.  Use the tool Chris mentionned to
debug them, and re-organize your segments.

-- Andr�

-----Original Message-----
From: Dan Patrutiu [mailto:[EMAIL PROTECTED]
Sent: Monday, May 26, 2003 11:52 PM
To: Palm Developer Forum
Subject: Re: App crash on HotSync or reset



"Jim Duffy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Hey guys,
>
> I'm currently working on a new version of my software.. All of the
> sudden, it is now crashing whenever there is a HotSync or a reset on
> the device. This does not happen on the pervious version and I can't
> think of anything drastic I did in this newer build.
>
> The Emulator error is:
>
> ERROR: MyApp(2.0 just changed  the emulated program counter to
> 0x8003CE52. This address is invalid because it is in neither ROM or
> RAM.
>
>
> Does anyone know what exactly this error is referring to or a possible
> remedy for the crash?
>
> Thank for any help.
>
>
> Jim
>

    Hi Jim,

    Your error source is, as the message is telling, the program counter
register (PC), which is changed some way by your program. PC contains the
address of the next instruction to execute and normally, a bad thing happens
if it is changed. The exact cause for this is hard to diagnosticate from
what you've written here. I think you are doing something illegal, like
going to a memory address (possible in the stack) and overwriting the data
there, using a non-valid pointer (which may have been freed), going out of
an array bounds or many other reasons. Try to isolate the problem in the
code by debugging the source, and see the exact location where it fails.

Dan Patrutiu




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





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

Reply via email to