[Mono-bugs] [Bug 564444] New: MessageBox.Show invariably throws System.NotImplementedException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 14 10:54:56 EST 2009


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

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


           Summary: MessageBox.Show invariably throws
                    System.NotImplementedException
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: webservices at landmarkdigital.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

The ubiquitous System.Windows.Forms.MessageBox.Show method attempts to play an
audible alert on every invokation.  As of mono 2.6 RC1 (also confirmed on mono
2.4.3) on OSX, this throws a System.NotImplementedException.  We were able to
call MessageBox.Show() in mono 2.2_5.






Reproducible: Always

Steps to Reproduce:
Save the following to file 'DialogTest.cs':
----
public class DialogTest
{
  public static void Main (string[] arg)
  {
    System.Windows.Forms.MessageBox.Show("Hello");
  }
}
----

Compile the code:
PROMPT > gmcs DialogTest.cs -o:DialogTest.exe -r:System.Windows.Forms.dll

Execute the code:
PROMPT > mono --debug DialogTest.exe 


Actual Results:  
Unhandled Exception: System.NotImplementedException: The requested feature is
not implemented.
  at System.Windows.Forms.XplatUICarbon.AudibleAlert () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:795 
  at System.Windows.Forms.XplatUI.AudibleAlert () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:471 
  at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () [0x00034] in
/private/tmp/monobuild/build/BUILD/mono-2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MessageBox.cs:193 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.MessageBox/MessageBoxForm:RunDialog ()
  at System.Windows.Forms.MessageBox.Show (System.String text) [0x0000f] in
/private/tmp/monobuild/build/BUILD/mono-2.6/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MessageBox.cs:578 
  at DialogTest.Main (System.String[] arg) [0x00000] in <filename unknown>:0 

Expected Results:  
Happy windows all around

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