At 04:53 PM 8/23/2004, you wrote:
greetings,

I have an issue with our application where we get an alert in POSE (v3.5
using a 4.1 debug ROM m505) indicating that an illegal or unknown machine
language instruction has just been executed when we quit the application
(quitting involves clicking the home button). We are using CodeWarrior 9.3.
It is a large application, we're using expanded mode and 4 byte ints.

I doubt I could give enough detail for others to provide serious assistance
in debugging this problem. Mostly, I wanted to find out from other
developers who may have encountered a similar problem (or at least a problem
that has a similar result: illegal opcode error when quitting their
application) what they did in general to find and solve their issue.

Does anyone have any leads into known "gotchas" that result in this
behavior?

Put a breakpoint at the end of your PilotMain and then step into the runtime library. You might need to rebuild the runtime with debug symbols to see anything useful.


The most likely cause is trashing of a return address on the stack, which would cause your code to jump to a bad location where there are no valid 68K instructions.


-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_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