LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Code is Crashing with FATAL RUN-TIME ERROR: General Protection Fault

Hi,

 

I already checked that. Please check the RunSeqChangePreTest function definition in previous comment.

 

In that GPF is generated after full execution of testResult = TX_RunPrePostTest(&dataRec, &errorRec, TRUE, TRUE);

 

 Couldnt find any faults in TX_RunPrePostTest while debugging. Once it finishes execution of this function, program crashes with GPF

0 Kudos
Message 21 of 26
(902 Views)

Hi 

 

Anyone has solution for the GPF issue?

 

0 Kudos
Message 22 of 26
(883 Views)

Not really. GPF errors can be caused by many things. It always involves some bad programming, but to find out which bad programming is an art of debugging, which is a fundamental element of code programming.

Rolf Kalbermatter
My Blog
0 Kudos
Message 23 of 26
(878 Views)

I tried to debug the code. But issue is it is generating just after the function execution. 

All lines of that function executes without any issue. But then from out of nowhere this fault generates

0 Kudos
Message 24 of 26
(873 Views)

That would point at some form of stack corruption. But I can't see from the code any glaring issues. It's tempting to put the blame on the used libraries but in my own experience it is almost always my own code which does this.

Rolf Kalbermatter
My Blog
0 Kudos
Message 25 of 26
(867 Views)

Using cvi 5.1 and compiled under release and debug, each one separated *.exe file run well no errors

But when i try to run debug from IDE, the program crash with

NON FATAL RUN-TIME ERROR: General Protection Fault

So i can´t debug my code

 

Thanks

Download All
0 Kudos
Message 26 of 26
(89 Views)