[Opensim-dev] SerializationExceptions!

Umar Farooq u.farooq at uea.ac.uk
Wed Apr 20 10:16:21 UTC 2011


Dear Justin,

Thanks for your reply! I am just trying to store ScenePresences that could
use .Net own serialisation. The issue am facing is that what need to be
marked as serializable, might be I need a serializable version of
ScenePresence like the serializableRegionInfo()? Sorry about the stupid
questions!

Best wishes and have a good day.

Umar


> 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
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>


-- 
Umar Farooq

Research Scholar,
Virtual Humans Group,
School of Computing Sciences,
University of East Anglia,
Norwich, United Kingdom.

Cell: +4497853398184




More information about the Opensim-dev mailing list