Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ControlNode Deserialization (Read 1848 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 127
Location: England
Joined: Oct 23rd, 2006
ControlNode Deserialization
Jan 25th, 2012 at 4:33pm
Print Post  
I have a Windows Forms chart that contains ControlNodes.
I can serialize the chart OK, but when I Deserialize it I get the error "Object Reference not set to an instance of an object". After this the chart seems to work OK, but the chart background is black.

What do I need to do to make everything work OK.

(I'm using FlowChart .NET 5.3.5)

DavidL
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ControlNode Deserialization
Reply #1 - Jan 25th, 2012 at 7:31pm
Print Post  
What's shown at the top of the call stack when the exception is thrown?
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 127
Location: England
Joined: Oct 23rd, 2006
Re: ControlNode Deserialization
Reply #2 - Jan 26th, 2012 at 11:34am
Print Post  
I've sorted the problem - the Control I associated with the ControlNode was one of my classes that I derived from TextBox.  This class did not have a default constructor.  Once I provided one, LoadFromStream was happy to deserialize the chart.

DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint