[Mono-bugs] [Bug 74524][Wis] New - Problem with spanish keyboard layout in Windows.Forms program

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 8 Apr 2005 13:04:18 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by xus-linux@ya.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74524

--- shadow/74524	2005-04-08 13:04:18.000000000 -0400
+++ shadow/74524.tmp.532	2005-04-08 13:04:18.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 74524
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Fedora Core 3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: xus-linux@ya.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem with spanish keyboard layout in Windows.Forms program
+
+Description of Problem:
+I'm create a simple winforms application and when I'm running it the 
+program crashes.
+
+Steps to reproduce the problem:
+Compile and run the next program:
+
+using System.Windows.Forms;
+
+class mywin:Form {
+    public mywin() {
+        this.Show();
+    }
+    public static void Main() {
+        Application.Run(new mywin());
+    }
+}
+
+Actual Results:
+
+Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15 
+5:56:12]
+Keyboard layout not recognized
+
+Unhandled Exception: System.TypeInitializationException: An exception 
+was thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
+System.NullReferenceException: Object reference not set to an instance 
+of an object
+in <0x003a1> System.Windows.Forms.X11Keyboard:CreateConversionArray 
+(System.Windows.Forms.KeyboardLayout layout)
+in <0x00071> System.Windows.Forms.X11Keyboard:.ctor (IntPtr display)
+in <0x002f5> System.Windows.Forms.XplatUIX11:SetDisplay (IntPtr 
+display_handle)
+in <0x00098> System.Windows.Forms.XplatUIX11:.ctor ()
+in <0x00043> System.Windows.Forms.XplatUIX11:GetInstance ()
+in <0x00059> System.Windows.Forms.XplatUI:.cctor ()--- End of inner 
+exception stack trace ---
+
+in <0x00000> <unknown method>
+in <0x0004b> System.Windows.Forms.Form:get_CreateParams ()
+in <0x001fc> System.Windows.Forms.Control:.ctor ()
+in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
+in <0x0000c> System.Windows.Forms.ContainerControl:.ctor ()
+in <0x00010> System.Windows.Forms.Form:.ctor ()
+in <0x0000a> mywin:.ctor ()
+in (wrapper remoting-invoke-with-check) mywin:.ctor ()
+in <0x0001a> mywin:Main ()
+
+Expected Results:
+The program runs
+
+How often does this happen? 
+Always
+
+Additional Information:
+Mono 1.1.5
+Keyboard layout Spanish