I'm doing a distributed Sokoban game, where .NET Remoting technology is mandatory.
I set up the logic of the game in a server component, and the window display and keyboard control in a client counterpart. At the point from where the client component must fill the window form with a picture of the game displaying the walls, the floor and stuff, i receive an unhandled exception:
Unhandled exception: remoting communication could not find "nativeImage" field within the "System.Drawing.Image" type.
Searching through Google, i discovered this is an old issue where System.Drawing
is not intended to be serialized, so, a workaround is needed.
Since i'm not too into C# (and programming in general), i ask for help:
How to send PictureBox.Image
objects between software components?
All my code has [Serializable]
and MarshalByRefObject
tags.
Examples are welcome!
Thank you in advance.