|
Exceptions |
Top Previous Next |
Exceptions are "emergency" halts of program execution. Exceptions are generated when the Virtual Machine encounters something that really prevents it from continuing normal operation. When exception happens you see "ABORT" target state in the status bar, like this:
![]()
"(DIV0)" is an abbreviated problem description. Hover the mouse over this and you will get a more detailed description.
Listed below are all possible exceptions. When you are in the debug mode any exception from the list below causes the Virtual Machine to abort execution. In the release mode, some "lesser" problems do not cause the halt. The logic here is that there will probably be nobody to restart the problem or check what happened anyway, so the Virtual Machine just tries to continue operation.
Code |
Description |
Halt in debug mode? |
Halt in release mode? |
DIV0 |
Division by zero |
Yes |
No |
OOR |
Out of range (attempt to access past the highest array member) |
Yes |
No |
FPERR |
Floating point error |
Yes |
No |
IOC |
Invalid opcode* |
Yes |
Yes |
OUM |
Access outside of user memory* |
Yes |
Yes |
TDLF |
Failed to load binary library* |
Yes |
Yes |
*This exception indicates that either TiOS or Tibbo Basic compiler is not functioning properly. Let us know if you encounter this exception!