[Mono-bugs] [Bug 646556] Binary serialization/deserialization do not work correctly if object contains nullable DateTime type.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 14 16:41:58 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=646556

https://bugzilla.novell.com/show_bug.cgi?id=646556#c4


--- Comment #4 from Feng Chen <feng.chen at hrblock.com> 2010-10-14 20:41:58 UTC ---
(In reply to comment #3)
> I guess you mean that deserializing the .NET files in Mono fails. This is the
> output I get when I do that:
> --------------------
> Succeeded to deserialize file:
> /tmp/BinaryDeserializationTest/BinaryDeserializationTest/bin/Debug/Employee.data
> Object type: BinaryDeserializationTest.Employee
> Name: Employee
> StartingDate: 10/14/2010 11:20:20 AM
> 
> BinaryDeserializer caught exception: Value 4164267892851870984 is outside the
> valid range [0,3155378975999999999].
> Parameter name: ticks
> Failed to deserialize file:
> /tmp/BinaryDeserializationTest/BinaryDeserializationTest/bin/Debug/EmployeeWithNullableDateTime.data
> ----------------------
> 
> Working on it...

Gonzalo,

Please also note that the Date Time deserialized from Employee.data is
incorrect. You can see this by comparing the value to that of command
"BinaryDeserializationTest -t".

Similarly, the values serialized in Mono and then deserialized in .NET are
WRONG even though no exception is thrown.

Thanks.

Feng

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list