Tue 06 Jun 2006 06:18:07 PM UTC, original submission:
There are two similar issues:
1) Serializing a class, the subsequently deserializing a class, does not work. The deserialization fails to load the class correctly.
I think both the write AND the read are broken. The reason is issues #2:
2) Using M$ C# (DevStudio), running the same program, produces a serialize file that is four bytes greater than dotgnu. Both files are attached. Then, trying to get dotgnu to READ the M$ serialize file crashes.
====================================
So, I think the deserialize is functioning incorrectly. When that gets fixed, I think you will find that the serialize code is not properly writing the type to the serialize file. But I suppose we will find that out for sure when we get there.
Attached is: test.cs - You can run the serialize/deserialize. Or, you can comment out/remove the serialize, and run only the deserialize using the M$ created serialize file.
testserialize.dat.created.by.xxx - the serialize files created by dotgnu and M$.
|