NullReferenceException calling NWpfChartControlView.RecalcLayout


Author
Message
Michael Krüllmann
Michael Krüllmann
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
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



Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Michael,

Can you post an example project that replicates this problem? Probably it's something simple to fix and if so we can publish a SP very quickly.

Best Regards,
Nevron Support Team


Michael Krüllmann
Michael Krüllmann
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
Posts: 6, Visits: 82
Hi,

thank you for the quick response.
See the example project in the attachment.

Best regards,
Michael

Attachments
NevronGridSurfaceExample.zip (1.1K views, 3.00 MB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Michael,
Just a short note that the newest version of the controls that we published today fixes this problem. You can download it from our website. Thank you for reporting this problem.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search