4.12.2 Handling a General Protection Fault

When a general protection (GP) fault occurs, CVW displays a message in the Command window to notify you of the event. If the GP fault occurred at an instruction in one of your modules, CVW displays the corresponding source code if the module was compiled to produce symbolic information. You can obtain information about the chain of calls leading up to the GP fault by using the CVW Call menu. This menu displays a backtrace of calls in the form of a series of segments and offsets, starting at the most recent call.

If your application was running with the debugging version of Windows, the backtrace shows function names next to some of the segment:offset pairs. By examining the function names, you may be able to determine where in your code the error occurred.