V7.0.2.4001 YAxesLayout exception.

Found a possible bug in LightningChart? Report it here.

Moderator: Arction_LasseP

Post Reply
ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

V7.0.2.4001 YAxesLayout exception.

Post by ehdrnsep » Fri Jun 17, 2016 8:44 am

Code: Select all

LightningChartUltimate chart = new LightningChartUltimate();
chart.ThrowChartExceptions = true;
ViewXY chartView = chart.ViewXY;
chartView.AxisLayout.YAxesLayout = YAxesLayout.Segmented; // here raised exception.

stacktrace :
위치: Arction.WinForms.Charting.LightningChartUltimate.BMC(ErrorType A, Object B, String C, String F, Boolean G)
위치: Arction.WinForms.Charting.LightningChartUltimate.IJC()
위치: Arction.WinForms.Charting.LightningChartUltimate.FJC()
위치: Arction.WinForms.Charting.LightningChartUltimate.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
위치: Arction.WinForms.Charting.Views.ViewXY.ViewXY.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
위치: Arction.WinForms.Charting.ChartNode.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
위치: Arction.WinForms.Charting.Views.ViewXY.AxisLayout.set_YAxesLayout(YAxesLayout value)
위치: ChartBug.Form1.CreateChart() 파일 D:\Work\Project\LightningChart\ChartBug\ChartBug\Form1.cs:줄 30
위치: ChartBug.Form1..ctor() 파일 D:\Work\Project\LightningChart\ChartBug\ChartBug\Form1.cs:줄 22
위치: ChartBug.Program.Main() 파일 D:\Work\Project\LightningChart\ChartBug\ChartBug\Program.cs:줄 19
위치: System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
위치: System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
위치: Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
위치: System.Threading.ThreadHelper.ThreadStart_Context(Object state)
위치: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
위치: System.Threading.ThreadHelper.ThreadStart()

ArctionKestutis
Posts: 367
Joined: Mon Mar 14, 2016 9:22 am

Re: V7.0.2.4001 YAxesLayout exception.

Post by ArctionKestutis » Fri Jun 17, 2016 11:45 am

please use insert line

Code: Select all

chartView.YAxes.Clear();
before Layout call

ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

Re: V7.0.2.4001 YAxesLayout exception.

Post by ehdrnsep » Mon Jun 20, 2016 12:33 am

I need one YAxis.
Is not a bug?
The solution is needed.

Code: Select all

LightningChartUltimate chart = new LightningChartUltimate();
chart.ThrowChartExceptions = true;
ViewXY chartView = chart.ViewXY;
chartView.YAxes.Clear();
chartView.AxisLayout.YAxesLayout = YAxesLayout.Segmented;

AxisY yAxis = new AxisY(chartView);
chartView.YAxes.Add(yAxis);

stacktrace:
위치: Arction.WinForms.Charting.LightningChartUltimate.BMC(ErrorType A, Object B, String C, String F, Boolean G)
위치: Arction.WinForms.Charting.LightningChartUltimate.IJC()
위치: Arction.WinForms.Charting.LightningChartUltimate.FJC()
위치: Arction.WinForms.Charting.LightningChartUltimate.KMC(Object A, EventArgs B)
위치: System.Windows.Forms.Timer.OnTick(EventArgs e)
위치: System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
위치: System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
위치: System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
위치: System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
위치: System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
위치: System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
위치: System.Windows.Forms.Application.Run(Form mainForm)
위치: ChartBug.Program.Main() 파일 D:\Work\Project\LightningChart\ChartBug\ChartBug\Program.cs:줄 19
위치: System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
위치: System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
위치: Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
위치: System.Threading.ThreadHelper.ThreadStart_Context(Object state)
위치: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
위치: System.Threading.ThreadHelper.ThreadStart()

ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

Re: V7.0.2.4001 YAxesLayout exception.

Post by ehdrnsep » Mon Jun 20, 2016 12:40 am

I find solution.
must add yaxisSegment one instance when YAxesLayout mode is segmented.
right?

Code: Select all

LightningChartUltimate chart = new LightningChartUltimate();
chart.Parent = this;
chart.ThrowChartExceptions = true;
ViewXY chartView = chart.ViewXY;
chartView.AxisLayout.Segments.Add(new YAxisSegment()); //add YAxisSegment instance
chartView.AxisLayout.YAxesLayout = YAxesLayout.Segmented;

ArctionKestutis
Posts: 367
Joined: Mon Mar 14, 2016 9:22 am

Re: V7.0.2.4001 YAxesLayout exception.

Post by ArctionKestutis » Mon Jun 20, 2016 1:16 pm

We are still investigating the issue.

Post Reply