Hi,

I'm forwarding to this list as maybe mono-osx was not the best place for
this patch. Can anybody review the it, please?

Thanks, 

David

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:mono-osx-
> [EMAIL PROTECTED] On Behalf Of David Suarez
> Sent: Wednesday, September 17, 2008 8:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Mono-osx] X11 locale support
> 
> I attach a patch to handle the exception so the key is discarded but no
> crash occurs.
> 
> Please review.
> 
> Cheers,
> 
> David
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:mono-osx-
> > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> > Sent: Wednesday, September 17, 2008 4:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Mono-osx] X11 locale support
> >
> > Hi,
> >
> > I'm getting a curious crash on MWF under X11 on mac (I don't know the
> > level of support it currently has on leopard)
> >
> > The point is that with a Spanish keyboard, pressing the tilde key
> > crashes with the app with this exception:
> >
> > Unhandled Exception: System.ArgumentException: Culture ID 1034
> > (0x040A) is not a supported culture.
> > Parameter name: culture
> >   at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean
> > useUserOverride, Boolean read_only) [0x00000]
> >   at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean
> > useUserOverride) [0x00000]
> >   at System.Globalization.CultureInfo..ctor (Int32 culture) [0x00000]
> >   at System.Windows.Forms.X11Keyboard.ToUnicode (Int32 vkey, Int32
> > scan, System.String& buffer) [0x00000]
> >   at System.Windows.Forms.X11Keyboard.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.XplatUIX11.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.XplatUI.TranslateMessage
> > (System.Windows.Forms.MSG& msg) [0x00000]
> >   at System.Windows.Forms.Application.RunLoop (Boolean Modal,
> > System.Windows.Forms.ApplicationContext context) [0x00000]
> >   at System.Windows.Forms.Application.Run
> > (System.Windows.Forms.ApplicationContext context) [0x00000]
> >   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
> > mainForm) [0x00000]
> >   at basicform.Form1.Main () [0x00000]
> >
> >
> > What I find weird curious here is that that's the only key that
> > happens to crash. Any clues?
> >
> > Cheers,
> >
> > David
> >
> > _______________________________________________
> > Mono-osx mailing list
> > [EMAIL PROTECTED]
> > http://lists.ximian.com/mailman/listinfo/mono-osx

Attachment: unhandled_culture_key_crash.patch
Description: Binary data

_______________________________________________
Mono-osx mailing list
[EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-osx
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to