Dear Arction Support,
I have a problem with the "CustomTicksEnabled" property of the axes in WinForms. Every time I try to enable the custom ticks, I get a NullReferenceException.
The WPF version of lightning chart does not have this problem. I am using the lates lightning chart version.
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Arction.LightningChartUltimate
StackTrace:
at Arction.LightningChartUltimate.Axes.AxisBase.SMC()
at Arction.LightningChartUltimate.Axes.Axis3DBase.SPB()
at Arction.LightningChartUltimate.Axes.Axis3DBase.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
at Arction.LightningChartUltimate.Axes.AxisBase.set_CustomTicksEnabled(Boolean value)
at LightningChart_WinForms.Form1..ctor() in ***\LightningChart_WinForms\Form1.cs:line 35
at LightningChart_WinForms.Program.Main() in ***\Program.cs:line 19
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Problem with "CustomTicksEnabled" Property
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Problem with "CustomTicksEnabled" Property
Thanks for reporting this. It was fixed in 6.3.1 version today. It's available in our Downloads.
LightningChart Support Team, PT
Re: Problem with "CustomTicksEnabled" Property
Thanks for the quick response. I tried the new version and unfortunately i got still a null reference exception but this time slightly different.
Her is the stack trace i got:
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Arction.LightningChartUltimate
StackTrace:
at Arction.LightningChartUltimate.Axes.AxisBase.PNC()
at Arction.LightningChartUltimate.Axes.AxisBase.SQB()
at Arction.LightningChartUltimate.Axes.Axis3DBase.IQB()
at Arction.LightningChartUltimate.Axes.Axis3DBase.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
at Arction.LightningChartUltimate.Axes.AxisBase.set_CustomTicksEnabled(Boolean value)
at LightningChart_WinForms.Form1..ctor() in ***\Form1.cs:line 132
at LightningChart_WinForms.Program.Main() in ***\Program.cs:line 19
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Her is the stack trace i got:
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Arction.LightningChartUltimate
StackTrace:
at Arction.LightningChartUltimate.Axes.AxisBase.PNC()
at Arction.LightningChartUltimate.Axes.AxisBase.SQB()
at Arction.LightningChartUltimate.Axes.Axis3DBase.IQB()
at Arction.LightningChartUltimate.Axes.Axis3DBase.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
at Arction.LightningChartUltimate.Axes.AxisBase.set_CustomTicksEnabled(Boolean value)
at LightningChart_WinForms.Form1..ctor() in ***\Form1.cs:line 132
at LightningChart_WinForms.Program.Main() in ***\Program.cs:line 19
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Problem with "CustomTicksEnabled" Property
Please remove the old chart from your Form, and place the new chart on it. If the problem doesn't disappear, please send a small VS project illustrating this problem to support[at]arction.com.
Thanks.
Thanks.
LightningChart Support Team, PT
Re: Problem with "CustomTicksEnabled" Property
Ok I have located the problem. Sorry for the inconvenience.