[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 24 19:51:44 EDT 2010



--- Comment #4 from Hin-Tak Leung <htl10 at users.sourceforge.net> 2010-10-24 23:51:43 UTC ---
Does System.IO.StreamWriter need a similiar Flush() in get_BaseStream() ?

I wrote that faulty code because I was having problems with incomplete output
of some compressed output streams (in mono). According to MSDN (or my
understanding of my reading of it), Close() at the very top should flush and
recursively flush and close downward also so manually invoking
BaseStream.Flush() shouldn't be needed... what's the "authoritative" answer?

Thanks a lot.

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