Problem with "CustomTicksEnabled" Property

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
MRunte
Posts: 3
Joined: Tue Dec 02, 2014 12:07 pm

Problem with "CustomTicksEnabled" Property

Post by MRunte » Tue Dec 02, 2014 12:57 pm

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:

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Problem with "CustomTicksEnabled" Property

Post by ArctionPasi » Wed Dec 03, 2014 12:08 am

Thanks for reporting this. It was fixed in 6.3.1 version today. It's available in our Downloads.
LightningChart Support Team, PT

MRunte
Posts: 3
Joined: Tue Dec 02, 2014 12:07 pm

Re: Problem with "CustomTicksEnabled" Property

Post by MRunte » Wed Dec 03, 2014 11:12 am

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:

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Problem with "CustomTicksEnabled" Property

Post by ArctionPasi » Wed Dec 03, 2014 11:37 am

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.
LightningChart Support Team, PT

MRunte
Posts: 3
Joined: Tue Dec 02, 2014 12:07 pm

Re: Problem with "CustomTicksEnabled" Property

Post by MRunte » Wed Dec 03, 2014 1:20 pm

Ok I have located the problem. Sorry for the inconvenience.

Post Reply