[Mono-bugs] [Bug 640010] New: Application hangs on exit when containing a WebBrowser under Dispose conditions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 17 04:10:33 EDT 2010



           Summary: Application hangs on exit when containing a WebBrowser
                    under Dispose conditions
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: PC
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jp.gouigoux at free.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

If a WebBrowser is instantiated in the main of an application and not disposed
(or disposed after some code), it hangs on exit.

Reproducible: Always

Steps to Reproduce:
1.Use the following code :

        static void Main()

            //// HANGS ON EXIT
            //WebBrowser Navigateur = new WebBrowser();
            //Application.Run(new Form1());

            // HANGS ON EXIT
            WebBrowser Navigateur = new WebBrowser();
            Application.Run(new Form1());

            //// WORKS FINE
            //WebBrowser Navigateur = new WebBrowser();
            //Application.Run(new Form1());

2.Run the application
3.Close the application
Actual Results:  
The application hangs on exit, and one is obliged to CTRL-C to get the back

Expected Results:  
The application should exit correctly and one be able to use the shell without
having to CTRL-C.

This makes it extremely difficult to use our mono applications by scripting. A
strange thing is that one does not need to use in a particular way the browser.
Simply instantiating it is enough to get a hang on exit.

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