SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi, i’m developing an app in WPF and i found that it crashes when i’m dereferencing the user control where my chart lives in and have 1 or more points selected by code in one chart when the other one is not visible.
i would be very apreciated if someone could tell me a hint of where i have to look for the solution or what do this methods do or touch.
more data about the chart:
this is my Selectionmodifier:
<scicharts:DataPointSelectionModifier
Name="ChartSelection"
SelectionFill="#B1B5B2B2"
XAxisId="{Binding XAxisType, NotifyOnTargetUpdated=True}"
TargetUpdated="ChartSelection_TargetUpdated"
SelectionStroke="#009E9C9C"
IsEnabled="{Binding SelectionMode}" >
I think that this is the axis that breaks my program but it needs it to not crash when i select.
this is my stacktrace:
An unhandled exception of type ‘System.NullReferenceException’ occurred in SciChart.Charting.dll
en SciChart.Charting.ChartModifiers.DataPointSelectionModifier.DeselectAllPointMarkers()
en SciChart.Charting.ChartModifiers.DataPointSelectionModifier.OnXAxisIdDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
I tried to make a program that could replicate the error but i couldn’t.
thanks in advance.
I second what Oleksandr said
If you can’t reproduce it then we won’t be able to either. Try to isolate features in SciChart until the problem goes away, or create a stand alone app (or use one of our examples) and add features until the problem occurs. Then share the result, we will be glad to help!
Best regards
Andrew
Please login first to submit.