Page 1 of 1

Exception in TeeChart v2009 when using SideAll Style

Posted: Fri Jun 04, 2010 8:20 am
by 15655558
Hi,

Exception occur when MultiBar of bar is set to SideAll.
The exception occurs in TChart 2009 with the following scenarios:
- the chart has 2 series and each series has only 1 bar.
- MultiBar of bar is set to SideAll.

The exception error is : System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index)
at Steema.TeeChart.Styles.Series.CalcYPos(Int32 index)
at Steema.TeeChart.Styles.Bar.CalcYPos(Int32 valueIndex)
at Steema.TeeChart.Styles.Bar.CalcBarBounds(Int32 valueIndex)
at Steema.TeeChart.Styles.Bar.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.DoDrawIndex(Int32 Index, Boolean CanID)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.DrawAllSeries(Graphics3D g)
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.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.UpdateWindow(HandleRef hWnd)
at System.Windows.Forms.Control.Update()
at System.Windows.Forms.Control.Refresh()
at TestBarChart.Form1.ChangeValue()

Either we increase each series to have more than 1 bar OR set the bar’s MultiBar to Side, we will not have any issue.

We do not see this issue in the older version of Tchart.

Refer to TestBarChart_SideAll_1Bar.zip for the sample application.

Re: Exception in TeeChart v2009 when using SideAll Style

Posted: Mon Jun 07, 2010 11:28 am
by yeray
Hi mcpang,

You are right. I've added it to the defect list to be revised asap (TF02014941).

Re: Exception in TeeChart v2009 when using SideAll Style

Posted: Wed Jun 09, 2010 3:32 am
by 15655558
Hi Yeray,

Is there any date that we are looking at for the fix to be released? or does the 2010 version of Teechart resolve this issue?

Re: Exception in TeeChart v2009 when using SideAll Style

Posted: Wed Jun 09, 2010 11:12 am
by 10050769
Hello mcpang,
or does the 2010 version of TeeChart resolve this issue?
It problem it isn't resolved in last version of TeeChart2010.
Is there any date that we are looking at for the fix to be released?
I'm afraid not yet. I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's implemented on them.

Thanks,