[Mono-bugs] [Bug 74524][Nor] Changed - Problem with 'default keyboard layout' in Windows.Forms program

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 27 Apr 2005 20:01:40 -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-27 18:28:56.000000000 -0400
+++ shadow/74524.tmp.24750	2005-04-27 20:01:40.000000000 -0400
@@ -113,6 +113,14 @@
 ------- Additional Comments From jackson@ximian.com  2005-04-27 18:28 -------
 I am now initializing a default keyboard, this should prevent a crash
 when the correct layout isn't detected. This isn't the complete
 solution, but should get things working in your case.
 
 Leaving the bug open, as this is not a real fix....
+
+------- Additional Comments From xus-linux@ya.com  2005-04-27 20:01 -------
+Sorry, this solution throws a System.NullReferenceException. The
+problem is that the layout variable is declared in DetectLayout
+function an initialized to null, then when run the line:
+Console.WriteLine (Locale.GetText("Keyboard layout not recognized,
+using default layout: " + layout.Comment));
+throws the exception.