Profile Picture

HorizontalMoveStep

Posted By Lou Laskey 11 Years Ago
Author
Message
Lou Laskey
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 24, Visits: 2

To All,

Development Environment: Win7, MSVS 2010, C#, Nevron Chart.NET 2012

I have a form with an NChartCommander on it that I use to run quick tests on various chart settings and other snippets of code.

At the following line in InitializeComponent: nChartCommander.HorizontontalMoveStep = ((Nevron.GraphicsCore.NLength)(resources.GetObject("nChartCommander1.HorizontalMoveStep")));

an Unhandled NullReferenceException occurs at runtime.

I have been using this test project for some time and this just occurred this morning and I wasn't working in the graph settings at all.

This did happen to me once before and I deleted the chart commander from the form and replaced it with a new one and that seemed to take care of it but I would like to know what causes it.

So I just now went ahead and deleted the NChartCommander and replaced it and that took care of it.

Any ideas?

TIA,

Lou



Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Lou,

This can be caused if you upgraded from a previous version - since the designer serializes the objects with their full type name it is trying to instantiate a NLength object from a previous version which fails as .NET binary serialization is not backward compatible.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic