LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange Invalid plot error

...
case EVENT_COMMIT:
 if(hOutlinePlot)-----------------where hOutlinePlot is a global variable
 {
  DeleteGraphPlot (timepanel, TIMEPANEL_GRAPH, hOutlinePlot, VAL_IMMEDIATE_DRAW); ----------------line 326
  hOutlinePlot=0;
 }
 ...;
 hOutlinePlot = PlotXY (timepanel, TIMEPANEL_GRAPH, pDsplOutlineDataX, pOutlineDataValue+nDsplOutlineDataXStartIdx,
    nDsplOutlineDataNumber, VAL_INTEGER, VAL_DOUBLE, VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_RED);

 ...;
 break;
...
 
 
NON-FATAL RUN-TIME ERROR:   "TimeWave.c", line 326, col 13, thread id 0x00000EBC:   Library function error (return value == -82 [0xffffffae]). Invalid plot
 
 
 
Most of the time this part of codes run OK, but sometimes occurs above error, I really don't know why. When the error occurs, the hOutlinePlot is really a positive number. I traced this part of codes many times and found the value of hOutlinePlot increases every time, is it right ? 
0 Kudos
Message 1 of 1
(2,671 Views)