[Mono-bugs] [Bug 626034] New: Calling Dispose() on a child window kills the entire application

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 27 14:15:27 EDT 2010


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

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


           Summary: Calling Dispose() on a child window kills the entire
                    application
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dennis.lafosse at teradyne.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=378694)
 --> (http://bugzilla.novell.com/attachment.cgi?id=378694)
Visual Studio 2005 solution

Description of Problem:

The attached testcase contains a form (the "primary form") that opens a second
form (the "child form"). The child form has a single button. When this button
is clicked, the click event handler calls Dispose() to close the form
(traditionally, you would call Close()). Rather than only closing the child
form, the call to Dispose() apparently kills the entire app...both the primary
and child forms disappear. There is no apparent exception being thrown, or
signal being raised, so I don't know exactly what is happening. Maybe the call
to Dispose() is disposing of the primary form too?

Steps to reproduce the problem:
1. Unpack the attached archive, which is a VS2005 project.
2. Build it, run it in Mono 2.6.4.
3. Click the button on the application's main window (a second window appears).
4. Click the button on this second window.
5. Watch as both windows disappear.

Actual Results:


Expected Results:
With Microsoft .Net 2.0, calling Dispose() on the child window only makes the
child window go away. The primary window stays up.

How often does this happen? 
Every time.

Additional Information:
Running CentOS4.3 on a VMWare Server virtual machine.

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