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);