Horizontal Bar Chart crashes in Designer

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UlfB
Newbie
Newbie
Posts: 2
Joined: Mon Sep 18, 2023 12:00 am

Horizontal Bar Chart crashes in Designer

Post by UlfB » Fri Sep 22, 2023 6:39 am

Steps to reproduce:
In a .net 6 Winform project, create a new form.
Drop a TChart component.
Click edit from the context menu and add a horizontal bar chart
click "series":
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidCastException: Unable to cast object of type 'Steema.TeeChart.Styles.HorizBar' to type 'Steema.TeeChart.Styles.Custom'.
at Steema.TeeChart.Editors.Series.CustomSeries..ctor(Series s, Control parent)
at Steema.TeeChart.Editors.Series.CustomSeries..ctor(Series s)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at Steema.TeeChart.Editors.SeriesEditor.ShowSeriesForm(Int32 index)
at Steema.TeeChart.Editors.SeriesEditor.SetSeries(Series s, Control parent)
at Steema.TeeChart.Editors.ChartEditor.aqm(Object scw, EventArgs scx)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at Steema.TeeChart.Editors.ChartEditor.apy(Object scw, EventArgs scx)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.WmSelChange()
at System.Windows.Forms.TabControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Horizontal Bar Chart crashes in Designer

Post by Marc » Mon Sep 25, 2023 1:50 pm

Hello,

Thank you for the bug report. The problem is reproducible. We will post a resolution as soon as possible.

Regards,
Marc Meumann
Steema Support

Post Reply