IndexOutOfRangeException!

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
madve
Newbie
Newbie
Posts: 52
Joined: Thu Feb 16, 2006 12:00 am

IndexOutOfRangeException!

Post by madve » Fri Sep 29, 2006 2:32 pm

Hi,

I get the following exception calling CheckDataSource method: (In the DataTable there are 28000 rows)

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.Series.CalcXPos(Int32 index)
at Steema.TeeChart.Styles.CustomPoint.CalcXPos(Int32 valueIndex)
at Steema.TeeChart.Styles.Custom.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Custom.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


----------------------------------------
TeeChart
Assembly Version: 2.0.2456.16161
Win32 Version: 2.0.2456.16161
CodeBase: file:///c:/w/CMM/src/CMM/CMMGraph/TeeChart.DLL
----------------------------------------

Please response me, ASAP!

Best regards,

Gabor Varga

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

Post by Narcís » Fri Sep 29, 2006 3:27 pm

Hi Gabor,

Could you please send us an example we can run "as-is" or post a code snippet similar to what I did on this topic so that we can reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

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

madve
Newbie
Newbie
Posts: 52
Joined: Thu Feb 16, 2006 12:00 am

Post by madve » Mon Oct 02, 2006 9:22 am

Hi,

During the investigation of the problem we found that one part of our code was not thread safe. :oops:

Now it works fine, please ignore this problem report.

Best regards,

Gabor Varga

Post Reply