Page 1 of 1

Horizontal Bar Chart crashes in Designer

Posted: Fri Sep 22, 2023 6:39 am
by 21096763
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)

Re: Horizontal Bar Chart crashes in Designer

Posted: Mon Sep 25, 2023 1:50 pm
by Marc
Hello,

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

Regards,
Marc Meumann