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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
fano
Newbie
Newbie
Posts: 56
Joined: Wed Jun 22, 2005 4:00 am
Location: USA, California

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

Post by fano » 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Apr 02, 2008 8:33 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply