Hello,

I'm just got a 12-node Alchemi grid working (the examples work great) and am starting to write my own C# code to utilize it.

Simple problems work fine, but I start running into serialization errors pretty quickly.

Say, for example, that I have a project like this:

TestApp (compiled as .exe)
TestGridThread (compiled as .dll)

TestAppGridThread is marked as Serializable, which makes sense.

Then in TestApp I do something like
app.Manifest.Add(new ModuleDependency(typeof(TestGridThread).Module));

This works fine.

However, if I start to use my own classes from within my TestGridThread, I get a serialization exception thrown from the app.Start() method.
I have a whole simulation library that I've already written, compiled in another DLL, where nothing is marked as Serializable that I want to call from within the TestGridThread.
I've added a like like
app.Manifest.Add(new ModuleDependency(typeof(SimulationLib).Module));
so that DLL is included in the thread.

The thing is, I could go through and make my simulation library serializable, but this is quite a bit of work, and has some unintended consequences.  For example, I have a considerable amount of read-only properties, some of my classes cannot have a default contructor, etc.

Any ideas?  Am I doing something wrong here?

Thanks!
-Matt



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users

Reply via email to