Brew Question:
Download Questions PDF

How to recover the phone from an "UndefInst Exception"?

Answer:

"Undef Inst Exception" stands for "undefined instruction exception," and means that the program pointer has jumped to a code segment that contains an undefined instruction. This can be the result of memory corruption, a stack overrun, or version-related incompatibilities between applet code and the BREW image on the phone.

Memory is tighter on the phone than when running on the emulator. Therefore, memory and stack overrun problems will be more likely to show up on the phone. You should double check memory related areas of your code, especially auto variable arrays and the maximum total size of allocated memory.

To clear the phone, pull the battery out for a few seconds.

Download Brew Interview Questions And Answers PDF

Previous QuestionNext Question
How to test application for proper handling of Suspend/Resume events on a non- provisioned phone?What is a "Re-entrant Data Abort"?