LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

graph scaling crashes with stack overflow

I have code to box zoom a graph control using two cursors. When I zoom into a graph using about 55000 points several times, the graph crashes with a stack overflow error. I use SetAxisScalingMode to scale, but I found that the problem still occurs with SetAxisRange. The stack size is set at 64000000. I'm not sure why the stack would be filled up by repeated zooms, since I'm not adding more data to the plot.

It crashes on this line:
SetAxisScalingMode (panel, control, VAL_BOTTOM_XAXIS, VAL_MANUAL, minx1, maxx1);
0 Kudos
Message 1 of 3
(3,117 Views)
See:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000006DD00000&USEARCHCONTEXT_CATEGORY_0=_318_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_318_&UCATEGORY_S=0
0 Kudos
Message 2 of 3
(3,117 Views)
yes, that was the problem.
0 Kudos
Message 3 of 3
(3,117 Views)