[Mono-dev] Possible mono bug in SoapFormatter

Sixes cliff at may.be
Sat Nov 15 08:40:33 EST 2008

I'm not sure whether this counts as a bug in mono, a bug in .NET or simply an
incompatibility that is acceptable, as it's probably a programming bug on my
part anyway.

Using the SoapFormatter, I output a serializable struct to a pre-opened
FileStream.  I then output a second serializable struct to the same
FileStream.  In both .NET and mono, I end up with a file containing two SOAP

The difference occurs on Deserialize.  .NET reads the first envelope and
leaves the stream pointer at the end of the xml.  Mono tries to read to the
end of the file and complains about two root elements.  I'm not sure which
is correct behaviour.

In any case, it's easily fixable by using two separate files.  Just thought
it was worth pointing out to the mono devs that it works differently.

View this message in context: http://www.nabble.com/Possible-mono-bug-in-SoapFormatter-tp20515577p20515577.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list