"Miguel Gonzalez" <[EMAIL PROTECTED]> wrote in message
news:58159@palm-dev-forum...
> After resegmenting the application, i'm obtaining this error when
running my
> application.
>
> "Aplicationxxx" 1.0 is attempting to change the emulated program
counter to
> 0x000058C. This address is invalid because it's not in a valid memory
chunk.
>
> I'm using CodeWarrior 6 and Sybase ultralite
Miguel, this usually means that one of your functions has overwritten
the location on the stack where the return address is stored. If this
happens, then at the end of the function you will return to the
corrupted value rather than the original address.
Make sure you're using debug ROMs and the latest POSE (version 3.2 right
now), as they can detect more problems earlier. You might also want to
put some logging code into your program that lets you know when you
enter and leave functions so you can isolate the stack smash down to one
piece of code.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/