Exception in TeeChart v2009 when using SideAll Style

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mcpang
Newbie
Newbie
Posts: 15
Joined: Wed Mar 31, 2010 12:00 am

Exception in TeeChart v2009 when using SideAll Style

Post by mcpang » Fri Jun 04, 2010 8:20 am

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.
Attachments
TestBarChart_SideAll_1Bar.zip
(14.84 KiB) Downloaded 506 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Exception in TeeChart v2009 when using SideAll Style

Post by Yeray » Mon Jun 07, 2010 11:28 am

Hi mcpang,

You are right. I've added it to the defect list to be revised asap (TF02014941).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

mcpang
Newbie
Newbie
Posts: 15
Joined: Wed Mar 31, 2010 12:00 am

Re: Exception in TeeChart v2009 when using SideAll Style

Post by mcpang » Wed Jun 09, 2010 3:32 am

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?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception in TeeChart v2009 when using SideAll Style

Post by Sandra » Wed Jun 09, 2010 11:12 am

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,
Best Regards,
Sandra Pazos / 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