[Mono-bugs] [Bug 522474] New: [PATCH] Differences between .NET and mono ComponentModel.Container Dispose behavior

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 15 17:36:54 EDT 2009


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


           Summary: [PATCH] Differences between .NET and mono
                    ComponentModel.Container Dispose behavior
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=305382)
 --> (http://bugzilla.novell.com/attachment.cgi?id=305382)
Test Case showing Difference of behaviour

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11)
Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11

monos implementation of System.ComponentModel.Container Dispose(bool) method
exhibits different behavior than .NET.

Attaching Test case showing the issue.
Attaching Patch fixing this issue.


Reproducible: Always

Steps to Reproduce:
1. Compile and run Attach test case
2.
3.
Actual Results:  
Dispose MyDialog(bool)
MyComp.DoSomthing IAmDisposed = False
Disposing MyComp
Disposing MyDialog
Dispose MyDialog(bool)
MyComp.DoSomthing IAmDisposed = True

Expected Results:  
Dispose MyDialog(bool)
MyComp.DoSomthing IAmDisposed = False
Disposing MyDialog
Disposing MyComp
Dispose MyDialog(bool)
MyComp.DoSomthing IAmDisposed = True

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