[Mono-winforms-list] .NET <-> Mono MWF remoting interoperability

Lluis Sanchez lluis@ximian.com
Wed, 16 Feb 2005 22:58:48 +0100


On dv, 2005-02-11 at 14:39 +0100, Aleksandar Dezelin wrote:
> I have to serialize System.Drawing.Grpahics instance in a .NET
> application and deserialize it in a Mono application. Currently I'm
> getting a SerializationException saying: "Undexpected binary element:
> 3". I suppose it's becose those two graphics instances are not
> interoperable regarding remoting (you cannot marshall them). Am I
> wright and if I am wright how can they be made interoperable?

Graphics is MarshalByRefObject, so you should be able to share an
instance of it through remoting (although I can't think about a good
reason for doing such a thing). If you are trying to serialize a
Graphics object using the BinarySerializer or something like that, it
will never work.

Lluis.

> 
> Cheers,
> Aleksandar Dezelin
>