[Mono-bugs] [Bug 644660] New: Stream.Dispose() does not call GC.SuppressFinalize

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 7 12:25:10 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=644660

https://bugzilla.novell.com/show_bug.cgi?id=644660#c0


           Summary: Stream.Dispose() does not call GC.SuppressFinalize
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bassam at symform.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729; .NET4.0E)

Not sure if this is intentional or not but Stream.Dispose() does not call
GC.SuppressFinalize which is different from .NET. I noticed that classes like
CryptoStream have their own workarounds (look at CryptoStream.Clear). 

Our application make heavy use of Streams and we depend on the Stream class to
call GC.SuppressFinalize for us. I suspect there are others in this category.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

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