[Opensim-dev] SerializationExceptions!

Justin Clark-Casey jjustincc at googlemail.com
Mon Apr 18 23:00:44 UTC 2011


On 16/04/11 20:03, Umar Farooq wrote:
> Hi Justin and all,
>
> Thanks for the previous help. I am trying to serialize presences in a
> scene to files using OpenSim.Framework.Util.SerializeToFile()
> functionality and it is giving me runtime serializationexception errors. I
> tried to make a few classes serialiazable but now am getting a
> System.Timers.Timer is not marked as serializable error.
>
> I tried using the same function for serializing clientinfo and it seems
> working fine. Could you please guide me in this case. Sorry for bothering
> you too much!

That SerializeToFile() doesn't do anything more than wrap .Net's own binary serialization facilities.

You might want to try XmlSerializer instead though you may end up having to provide a custom serialization.

-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-dev mailing list