Profile Picture

NullReferenceException calling NWpfChartControlView.RecalcLayout

Posted By Michael Krüllmann 7 Years Ago

NullReferenceException calling NWpfChartControlView.RecalcLayout

Author
Message
Michael Krüllmann
Problem Posted 7 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 6, Visits: 82
Hello,

I am trying to implement a chart using the NGridSurfaceVerticalCrossSectionU chart from the 'Nevron.Examples.Chart.Wpf.VS2015' example suite as a template.
For the first step I just copied most of the code into my own solution.
But different to the example I declared the NVChartControl within the XAML-declaration of my chart and the FillData method is implemented using my own data.
My problem is that within the Create-method the call of "nChartControl1.View.RecalcLayout()" causes a NullReferenceException  whereas in the example it does not.
Unfortunatly the debugger gives no information which object is NULL. nNChartControl1 and its view are not null. The only valuable information is that the exception occurs within the Nevron.Chart.dll.
I tried out several modifications (i.e. call Create from a button-click-handler to be sure that the window hosting the chart has been completly created, let FillData() do nothing, running my own app with admin rights), but nothing helped.
I also examined which Nevron-Dlls are loaded in my application and in the example suite. They are the same and loaded from the GAC.
I hope you can give me some advise what may go wrong.

Thank you in advance,
Michael







Similar Topics


Reading This Topic