Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tag loads as Null (Read 1424 times)
josephsolaris
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 4th, 2008
Tag loads as Null
Jun 4th, 2008 at 6:48pm
Print Post  
Hello,

We are using FlowChart.NET 5.0.1, and in our program we use tags that are objects, not strings; our program uses the diagram.SaveToString() method to save the tags.  When the program tries to load a saved project, we load the tags using the diagram.LoadFromString() method, but the tags come back null.  Any ideas of how to fix this or why it is happening would be appreciated.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tag loads as Null
Reply #1 - Jun 4th, 2008 at 7:29pm
Print Post  
Hello,

Mark the class of your tag objects as [Serializable]. Also implement the ISerializable interface if you plan to change that class in the future - that will let you realize some versioning logic for backward compatibility.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
josephsolaris
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 4th, 2008
Re: Tag loads as Null
Reply #2 - Jun 4th, 2008 at 8:02pm
Print Post  
Thanks!! Works fine now!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint