[Mono-bugs] [Bug 550960] Dataset binary serialization fails if first row contains nulls.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Oct 29 07:06:41 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=550960
User stefano.sapienti at apsystems.it added comment
http://bugzilla.novell.com/show_bug.cgi?id=550960#c1
--- Comment #1 from Stefano Sapienti <stefano.sapienti at apsystems.it> 2009-10-29 05:06:40 MDT ---
If it can helps I looked at the source code and I found that in
systems/system.data/datatable.cs
internal void BinarySerialize (SerializationInfo info, string prefix)
makes this
Array recordArray = Array.CreateInstance (Rows[0][j].GetType (), recordsCount);
and then, after a while
recordArray.SetValue (dr [j, version], l);
Probably if Rows[0][j] is null it creates a wrong typed recordArray and it
fails the subsequent cast.
--
Configure bugmail: http://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