At 04:16 AM 3/20/2004, you wrote:I install the .prc into the palm device,and run it . It crash,and give the following information:
Emul68KMain.c,Line:403,illegalinstruction 2FE1 at address 20060006.
What does mean it?
It means your code tried to run an instruction that wasn't valid for the 68K emulation core.
There are a few ways to do this. Using a bad function pointer or overwriting the address in a intersegment jump table are two common methods.
Another common one is to overwrite a buffer declared as a local variable. This has the possibility of overwriting the function return address on the stack. When the called function attempts to return, it uses the overwritten return address, which is garbage at this point, leading to a return to a random memory location.
-- Keith
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
