[Mono-bugs] [Bug 337469] New: Forms: Invalid MessageBoxes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 29 07:05:34 EDT 2007


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

           Summary: Forms: Invalid MessageBoxes
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at ximian.com
          Found By: ---


To reproduce, run code below in Windows XP with estonian regional settings.

Observed:

Three message boxes appear. 
First two show System.Windows.Forms.resources, Culture=et
(note lowercase r in resources)
Third shows TypeInitializationException message and disappears
when mouse is moved over it.

Expected:

Two message boxes (first with NotexistingAssembly and second with
FileNotFoundException)
should appear.
MessageBox should not disappear when mouse is moved over it.

Environment:

Windows XP SP2 Estonian regional settings
Application compiled with VCSE 2005 in Windows
NET 2
MONO 1.2.5

Note:
If additional messagebox is called before try block, winforms
issues do not appear.

Code:

using System;
using System.Windows.Forms;
using System.Reflection;

static class Program {
        static void Main() {

                try {
                        AppDomain.CurrentDomain.AssemblyResolve += new
ResolveEventHandler(CurrentDomain_AssemblyResolve);
                        Assembly.Load("NotexistingAssembly");
                }
                catch (Exception ex) {
                        MessageBox.Show(ex.ToString());
                }
        }

        static Assembly CurrentDomain_AssemblyResolve(object sender,
ResolveEventArgs args) {
                MessageBox.Show(args.Name);
                return null;
        }
}


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