[Mono-bugs] [Bug 357519] IDisposable incorrectly implemented in streams

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 22 03:32:50 EST 2008


User atlaste at yahoo.com added comment

Stefan de Bruijn <atlaste at yahoo.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |atlaste at yahoo.com

--- Comment #2 from Stefan de Bruijn <atlaste at yahoo.com>  2008-02-22 01:32:50 MST ---
I've checked the bug on other platforms as well. It acts the same on all.

Furthermore, this bug is the reason for about 50% of the crashes of all code I
use, including third party DLL's. Usually as a result of calling IDisposable of
streams twice. (one implicit via 'close' and one explicit via 'using') That
makes it in my opinion a major bug.

I think the solution is quite simple: check if the stream is closed, if so: do
nothing and continue disposing, if not: close and continue. Am I correct?

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

More information about the mono-bugs mailing list