Profile Picture

NState error

Posted By Lou Laskey 11 Years Ago
Author
Message
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 Scott,

Yes that is correct - deleting this line of code will revert the control to its default state and the design time state will be lost.

You can serialize the control state to CustomXML format which we try to maintain as backward compatible and import the saved state to the new version of the control. In general we decided to use binary serialization in the winform designer because it was much faster than XML.



Best Regards,
Nevron Support Team



Frank Wolfs
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 3, Visits: 16
Last time I checked, deleting this line of code caused us to lose the chart we designed, and required it to be completely redesigned. Is there a recommended upgrade path, to preserve any designed charts? We had to manually code all the options instead of using the wizard to skirt the issue.

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,

You can safely delete those lines of code, which are generated by the designer.

In general the problem is that .NET binary serialization is not backward compatible so it cannot read states saved with older versions of the assemblies. We did not want to use backward compatible serialization (XML, Custom XML) in the design state as it is slower than binary. Let us know if you meet any problems or have any questions.



Best Regards,
Nevron Support Team



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#

I recently updated to 2012.1 and am currently getting the following error when opening a form with charts in the forms designer.

Object of type 'Nevron.Chart.Winform.NState' cannot be converted to type 'Nevron.Chart.Winform.NState'.

Here is an example of the code in the designer from a form that has 32 charts on it that is causing the issue:

this.Wave_6.State = ((Nevron.Chart.WinForm.NState)(resources.GetObject("Wave_6.State")));

If I remove all the NState lines from the designer code for a form, I can open the form with the forms designer but I haven't gotten far enough along to see if all runs ok.

Any help would be appreciated.

TIA,

Lou

 

 





Similar Topics


Reading This Topic