[Mono-list] More Serialization Problems

Robert Caskey rcaskey@uga.edu
30 Jun 2003 05:49:22 +0200


Hrm,  I'm getting a runtime error:
rcaskey@r3wt:~$ mono Wilkins.exe
 
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required
in <0x00236> 00 System.Xml.Serialization.XmlSerializer:SerializeMembers
(System.Xml.XmlWriter,object,bool)
in <0x006b5> 00 System.Xml.Serialization.XmlSerializer:WriteElement
(System.Xml.XmlWriter,System.Xml.Serialization.XmlAttributes,string,string,System.Type,object)
in <0x00eb1> 00 System.Xml.Serialization.XmlSerializer:SerializeMembers
(System.Xml.XmlWriter,object,bool)
in <0x00a02> 00 System.Xml.Serialization.XmlSerializer:Serialize
(System.Xml.XmlWriter,object,System.Xml.Serialization.XmlSerializerNamespaces)
in <0x00071> 00 System.Xml.Serialization.XmlSerializer:Serialize
(System.IO.Stream,object)
in <0x00089> 00 SVG.Document:DocumentXML ()
in <0x000c3> 00 SVG.Test:Main ()

Full src & compiled version available at:

http://robshouse.sytes.net/~robertj/wilkins/src/

I am just stumped by this and have been working on it for a few days,
got a good hint from Lluis Sanchez(thanks) earlier but I still can't get
it to work right. Any help would be...err..helpful.

Thanks,
Rob J. Caskey