Page 1 of 1

Series Y value for a given X value (NearestPoint problem)

Posted: Tue Apr 01, 2008 7:12 pm
by 9637279
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

Posted: Wed Apr 02, 2008 8:33 am
by narcis
Hi Norman,

Could you please send us a simple example project we can run "as-is" and let us know the exact steps we should follow to reproduce the issue?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.