LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Please help me !

The application occur FATAL RUN-TIME ERROR when the GRAPH control is programmed. The code which makes the error is:
SetAxisScalingMode (timepanel, TIMEPANEL_GRAPH, VAL_BOTTOM_XAXIS, nScaleMode, 0.0, (double)(lnSize-1)); (where,lnSize=97441,for example)
and the error message is:
 FATAL RUN-TIME ERROR:   "TimeWave.c", line 200, col 5, thread id 0x00000B78:   The program has caused a 'General Protection' fault at 001B:685C08B3.
 
This error doesn't always happen. When I debuged the application and ran it step by step, this error usually doesn't happen. But when the application runs automatically, the error happen.
I don't know why ? Please help me,thanks!
 
0 Kudos
Message 1 of 4
(3,520 Views)

Are you absolutely sure that your parameter nScaleMode is set correctly? Under debug, local variables within a function are initialised to 0 (unless you specify otherwise, of course) whereas under release mode they are not implicitly initialised. The 3 legal values for this parameter are 0, 1 or 2; it may be the case that an error here is causing the problem.

JR

0 Kudos
Message 2 of 4
(3,485 Views)
Hi,
You might want to uncheck the auto-scale for the Top X axis of the graph control. This was an earlier issue with graph controls.
Also, if you are programatically setting the string labels for the axis labels, make sure the strings are not empty. This also leads to a General protection fault error.
I hope this helps.

Dwivedi
0 Kudos
Message 3 of 4
(3,435 Views)
Help,
  My app is crashing with a  FATAL RUN-TIME ERROR:   "Main_GUI.c", line 1889, col 18, thread id 0x00000838:   The program has caused a 'Double' fault at 001B:6E9D3DEB. Only when the Graph is Display and I resize the Panel. If the Graph is hidden it runs fine.
David E. Jennings
NASA Sounding Rocket Guidance Navigation and Control Group
NASA/Goddard Space Flight Center/Wallops Flight Facility
Building F10 RM 204
Wallops Island VA, 23337
Phone: (757) 824-1283
Fax: (757) 824-2423
E-mail:Jennings_Dave@nsroc.net / davidejennings@yahoo.com
0 Kudos
Message 4 of 4
(3,363 Views)