Series Y value for a given X value (NearestPoint problem)
Posted: Tue Apr 01, 2008 7:12 pm
Hi,
I use C# .NET and TeeChart: 2.02511.18118 (cannot upgrade at this time due to software testing)
I show cursor tool values for series utilizing the method:
cursorTool.NearestPoint in the change event for the cursor tool.
However, it produces once in a while a stack overflow (maybe that method uses a recursion). Moving the mouse (i.e. cursortool and zooming in out a lot seems to re-produce this).
To avoid this I am thinking of using the cursor tool e.XValue in the Change event to find the Y value of the various series for which I want to show the Y-values to the user - BUT I don't want to use the cursorTool.NearestPoint method anymore. Is there a way to do that without that problematic method?
My own code has no recursion. Even after increasing the stack the overflow occurs irregularly. I believe that a infinite recursion is triggered in the teechart method mentioned. Any other way to show mouse/cursor
values without NearestPoint?
Help is greatly appreciated.
Norman
I use C# .NET and TeeChart: 2.02511.18118 (cannot upgrade at this time due to software testing)
I show cursor tool values for series utilizing the method:
cursorTool.NearestPoint in the change event for the cursor tool.
However, it produces once in a while a stack overflow (maybe that method uses a recursion). Moving the mouse (i.e. cursortool and zooming in out a lot seems to re-produce this).
To avoid this I am thinking of using the cursor tool e.XValue in the Change event to find the Y value of the various series for which I want to show the Y-values to the user - BUT I don't want to use the cursorTool.NearestPoint method anymore. Is there a way to do that without that problematic method?
My own code has no recursion. Even after increasing the stack the overflow occurs irregularly. I believe that a infinite recursion is triggered in the teechart method mentioned. Any other way to show mouse/cursor
values without NearestPoint?
Help is greatly appreciated.
Norman