LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you use the address (ie:001B:8658F767)to locate a General Protection fault

I am in the debug mode and I am provided the address and I would like to know how I can use the address to locate the line that is causing the General Protection fault. The program identifes the call to RunInterface.
0 Kudos
Message 1 of 2
(2,912 Views)
Donna,

GPFs are a challenge to debug. The address is not going to get you very far. If your code stops on RunUserInterface, most likely the crash is cause at a callback. From my experience the fastest way of find where the GPF gets generated is to add a DebugPrintf(,,,) statement and the beginnig and end of each callback indicating the current function. This way you'll know what is the conflicting function.

Please give this a try and let me know how this goes.

Regads,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,912 Views)