LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows CVI General Protection Fault using GRAPH object

hi,
while doing some pan/zoom with a GRAPH object in Labwin/CVI, I always got a "General Protection Fault" in the function RunUserInterface ().
Now, there is no more information about that... I have placed a debugprintf in the beginning and in the end of each cvallback function but...
each callback seems to work fine (display: start - end...).

Do someone have more information about that?

The labwindows/cvi software is 7.0.0 (393).

Thank you in advance
Giovanni
0 Kudos
Message 1 of 4
(3,418 Views)
Hello Ucasano,
 
there might be several reason for "General Protection Fault" to appear. A possible reason may be that you didn't check the "Copy data" option for the graph you're using; doing so the data you are displaying have been deallocated from memory and the program returns an error since graph still looks to the original buffer for the data.
 
This could be one of the multiple reasons why such a General protection Fault is returned. If you could reproduce the problem into a small project maybe I could take a look into it and maybe find a solution
 
Best regards,
 
Fabio
Fabio M.
NI
Principal Engineer
0 Kudos
Message 2 of 4
(3,391 Views)
There was also an issue in cvi7.0 if top xaxis scaling was left in auto.  You might try removing that.  Updating the cvi runtime will fix some plot related problems in cvi7.0.
0 Kudos
Message 3 of 4
(3,383 Views)
hi,
updating the RTE to the latest version (8.1.1) did solve the problem.

Thanks to everybody.
GC
0 Kudos
Message 4 of 4
(3,365 Views)