Exception Codes

This topic describes the following types of exceptions:

RTX Exception Codes

The table that follows lists the exception name, the vector number or error code, and the exception handler response.

Exception

Error code

RTX will...

EXCEPTION_NPX_NOT_AVAILABLE

0X07

Allow for floating-point capability, and continue executing the application.

EXCEPTION_INT3

0x03

Enter the debugger. If no debugger is present, RTX freezes the process.

EXCEPTION_NMI
EXCEPTION_DOUBLE_FAULT
EXCEPTION_RESERVED_TRAP
EXCEPTION_INVALID_TSS

0x02
0x08
0x0F
0x0A

Issue a Green Screen stop message.

Intel Exception Codes

Following Win32 behavior, RTSS maps the Intel (x86) exception code to the Win32 one, and then invokes Structured Exception Handling. RTX will alert the user via a popup message, make an entry to the event log, and freeze or terminate the thread and associated process.

x86 Exception

Win32 Mapping

EXCEPTION_DIVIDED_BY_ZERO

EXCEPTION_INT_DIVIDE_BY_ZERO
EXCEPTION_FLT_DIVIDE_BY_ZERO

EXCEPTION_NPX_OVERRUN

EXCEPTION_FLT_INVALID_OPERATION

EXCEPTION_NPX_ERROR

EXCEPTION_FLT_DENORMAL_OPERAND
EXCEPTION_FLT_DIVIDE_BY_ZERO
EXCEPTION_FLT_OVERFLOW
EXCEPTION_FLT_UNDERFLOW
EXCEPTION_FLT_INEXACT_RESULT
EXCEPTION_FLT_INVALID_OPERATION

EXCEPTION_INVALID_OPCODE

EXCEPTION_ILLEGAL_INSTRUCTION

EXCEPTION_GP_FAULT
EXCEPTION_PAGE_FAULT
EXCEPTION_BOUND_CHECK
EXCEPTION_SEGMENT_NOT_PRESENT

EXCEPTION_ACCESS_VIOLATION

EXCEPTION_DEBUG

EXCEPTION_BREAKPOINT

EXCEPTION_ALIGNMENT_CHECK

EXCEPTION_DATATYPE_MISALIGNMENT

 

See Also

IntervalZero.com | Support | Give Feedback