[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


User stefano.sapienti at apsystems.it added comment

--- 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

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