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


           Summary: [OSX] Systematic crash on launch of WinForm app
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: Third Party Developer/Partner


Created an attachment (id=217828)
 --> (https://bugzilla.novell.com/attachment.cgi?id=217828)
Source code of sample program to reproduce the crash

Description of Problem:


Steps to reproduce the problem:
1. Open System Preferences, and the International panel.
2. Go to the "Formats" pane
3. Select the French Format (if you have a submenu, select France)
4. close the System Preferences and Open a new terminal window (important: any
previously open terminal window will still have the old format settings)
5. launch any WinForm app
6. Watch it crash
7. Restore your previous Formats setting in the System Preferences.


Actual Results:
Unhandled Exception: System.FormatException: Unknown char: .
  at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider
provider) [0x00016] in
/private/tmp/monobuild/build/BUILD/mono-1.9.1/mcs/class/corlib/System/Double.cs:214
 

Expected Results: no crash


How often does this happen? everytime


Additional Information: Mac OS X 10.5.2 on a MacBook Pro with 2 GB RAM.
$ mono --version
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  x86
        Disabled:      none

the crash happens when the format for floating point numbers includes a
floating-coma, instead of a floating point. Probably other settings than
French(France) will make it crash too.

My test program is a trivial Windows .NET program. It's full source is the
following few lines of code:

using System;
using System.Drawing;
using System.Windows.Forms;

public class HelloWorld : Form
{
        static public void Main ()
        {
                Application.Run (new HelloWorld ());
        }

        public HelloWorld ()
        {
                Button b = new Button ();
                b.Text = "Click Me!";
                b.Click += new EventHandler (Button_Click);
                Text = "Hello Mono World";
                Controls.Add (b);
                MessageBox.Show ("Button Clicked!");
        }

        private void Button_Click (object sender, EventArgs e)
        {
                MessageBox.Show ("Button Clicked!");
        }

I cannot test this program on a real .NET platform as I run on a Mac. But I
found it on the web form a reputable site. Moreover, the program works as
expected when the international format is set to United States.


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to