Page 1 of 1

IndexOutOfRangeException!

Posted: Fri Sep 29, 2006 2:32 pm
by 9790349
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

Posted: Fri Sep 29, 2006 3:27 pm
by narcis
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.

Posted: Mon Oct 02, 2006 9:22 am
by 9790349
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