IndexOutOfRangeException
Posted: Fri Jul 20, 2007 12:47 am
Received the error with the message 'Index was outside the bounds of the array'.
My application is unable to trap the error and closes.
The top of the call stack is:
TeeChart.dll!Steema.TeeChart.Styles.ValueList.this[int].get(int index = 1) + 0x21 bytes
TeeChart.dll!Steema.TeeChart.Styles.Series.CalcXPos(int index = 1) + 0x2c bytes
TeeChart.dll!Steema.TeeChart.Styles.Shape.GetShapeRectangle() + 0x114 bytes
TeeChart.dll!Steema.TeeChart.Styles.Shape.Clicked(int x = 217, int y = 108) + 0xb2 bytes
TeeChart.dll!Steema.TeeChart.Styles.Series.Clicked(System.Drawing.Point p = {X = 217 Y = 108}) + 0x39 bytes TeeChart.dll!Steema.TeeChart.Chart.CalcNeedClickedPart(System.Drawing.Point Pos = {X = 217 Y = 108}, bool Needed = true) + 0x17b bytes
TeeChart.dll!Steema.TeeChart.Chart.DoMouseDown(bool IsDoubleClick = false, System.Windows.Forms.MouseEventArgs e = {X = 217 Y = 108 Button = Left}, System.Windows.Forms.Keys Shift = None) + 0xdf bytes
TeeChart.dll!Steema.TeeChart.TChart.OnMouseDown(System.Windows.Forms.MouseEventArgs e = {X = 217 Y = 108 Button = Left}) + 0x86 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseDown(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0xe2 bytes
I received this by:
1. Create a chart.
2. Added 8 shape series (lines). No other series.
3. Removed all the series with RemoveAllSeries. (Also tried RemoveAt for each and Clear(true)).
4. Added 8 new shape series (lines).
5. Clicked on one of the series.
Bang! the error occurs.
Note: all this processing, except the click, was done programmatically.
Ian.
My application is unable to trap the error and closes.
The top of the call stack is:
TeeChart.dll!Steema.TeeChart.Styles.ValueList.this[int].get(int index = 1) + 0x21 bytes
TeeChart.dll!Steema.TeeChart.Styles.Series.CalcXPos(int index = 1) + 0x2c bytes
TeeChart.dll!Steema.TeeChart.Styles.Shape.GetShapeRectangle() + 0x114 bytes
TeeChart.dll!Steema.TeeChart.Styles.Shape.Clicked(int x = 217, int y = 108) + 0xb2 bytes
TeeChart.dll!Steema.TeeChart.Styles.Series.Clicked(System.Drawing.Point p = {X = 217 Y = 108}) + 0x39 bytes TeeChart.dll!Steema.TeeChart.Chart.CalcNeedClickedPart(System.Drawing.Point Pos = {X = 217 Y = 108}, bool Needed = true) + 0x17b bytes
TeeChart.dll!Steema.TeeChart.Chart.DoMouseDown(bool IsDoubleClick = false, System.Windows.Forms.MouseEventArgs e = {X = 217 Y = 108 Button = Left}, System.Windows.Forms.Keys Shift = None) + 0xdf bytes
TeeChart.dll!Steema.TeeChart.TChart.OnMouseDown(System.Windows.Forms.MouseEventArgs e = {X = 217 Y = 108 Button = Left}) + 0x86 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseDown(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0xe2 bytes
I received this by:
1. Create a chart.
2. Added 8 shape series (lines). No other series.
3. Removed all the series with RemoveAllSeries. (Also tried RemoveAt for each and Clear(true)).
4. Added 8 new shape series (lines).
5. Clicked on one of the series.
Bang! the error occurs.
Note: all this processing, except the click, was done programmatically.
Ian.