[Mono-bugs] [Bug 604479] New: WeakReference doesn't seem to be collected after System.GC.Collect()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 10 17:29:08 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=604479

http://bugzilla.novell.com/show_bug.cgi?id=604479#c0


           Summary: WeakReference doesn't seem to be collected after
                    System.GC.Collect()
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rodrigobamboo at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4
(KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4

The attached test case (MonoWeakRefBug.cs) passes on .net but fails on mono.



Reproducible: Always

Steps to Reproduce:
gmcs MonoWeakRefBug.cs && mono MonoWeakRefBug.exe
Actual Results:  
Unhandled Exception: System.Exception: Exception of type 'System.Exception' was
thrown.
  at WeakRefBug.Program.AssertEquals (System.Object expected, System.Object
actual) [0x00000] in <filename unknown>:0 
  at WeakRefBug.Program.Main (System.String[] args) [0x00000] in <filename
unknown>:0 

Expected Results:  
success!

-- 
Configure bugmail: http://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