AdamsLair / duality

a 2D Game Development Framework

Home Page:https://adamslair.github.io/duality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XElement does not work properly with duality serialization

Barsonax opened this issue · comments

Summary

When serializing a XElement a exception is thrown when deserializing which cause it to write corrupt data which cannot be deserialized properly.

System.ArgumentNullException
  HResult=0x80004003
  Message=Value cannot be null.
Parameter name: name
  Source=System.Xml
  StackTrace:
   at System.Xml.XmlConvert.VerifyNCName(String name, ExceptionType exceptionType)
   at System.Xml.Linq.XName..ctor(XNamespace ns, String localName)
   at Duality.ObjectCreator.CheckActivator(CreateMethod activator, Exception& error) in C:\git\duality\Source\Core\Duality\Utility\ObjectCreator.cs:line 176

  This exception was originally thrown at this call stack:
    [External Code]