I hate replying to myself but I have new information that might help someone working on winforms.
Setting the environment variable LC="C" makes it work. So # LC="C" mono prog.exe works fine (except under the wrong locale). I think my LC variable is usally set to en_GB.utf8 and is probably the problem. Maybe it isn't being set properly and I'll look into that. I got that nugget from the Gentoo forum where they say it happens because the String contructor runs out of memory. I can't confirm this but if anyone can say whether this is Mono, Gentoo, or winforms problem I'll file a bug report with right people. On a side note, I was having trouble with #resgen too which might be locale related. I hope this info helps any one fixing bugs before the next big release, Adam On Monday 23 January 2006 22:00, Adam J. P. Wood wrote: > Accidentally repiled to author instead of the list, so I'm trying again. :) > > I'm not running a 64 bit processor, just an AMD Athlon XP. > > Adam > > On Monday 23 January 2006 20:57, Peter Dennis Bartok wrote: > > Are you on a 64bit processor? > > > > Peter > > > > -----Original Message----- > > From: "Adam J. P. Wood" <[EMAIL PROTECTED]> > > To: <[email protected]> > > Date: 23 January, 2006 13:55 > > Subject: [Mono-winforms-list] Mono hangs after looking up > > XKeycodeToKeysym > > > > >Please help, > > > > > >I'm using mono on Linux and trying to run an app which has previously > > >worked > > >on windows. I think it is a problem with my Xorg configuration but I > > > can't figure it out. > > > > > >I'm using Gentoo, Xorg 6.8, and Mono 1.1.13 > > > > > >When I start up mono with debugging output the app starts and prints > > > some console text. As it tries to open the first window obviously the > > > System.Windows.Forms assembly gets loaded and then a lot of lines like > > > the following: > > > > > >Mono-INFO: Searching for 'XGetKeyboardMapping'. > > >Mono-INFO: Probing 'XGetKeyboardMapping'. > > >Mono-INFO: Found as 'XGetKeyboardMapping'. > > >Mono-INFO: DllImport attempting to load: 'libX11.so.6'. > > >Mono-INFO: DllImport loading location: 'libX11.so.6'. > > >Mono-INFO: Searching for 'XFree'. > > >Mono-INFO: Probing 'XFree'. > > >Mono-INFO: Found as 'XFree'. > > >Mono-INFO: DllImport attempting to load: 'libX11.so.6'. > > >Mono-INFO: DllImport loading location: 'libX11.so.6'. > > >Mono-INFO: Searching for 'XFreeModifiermap'. > > >Mono-INFO: Probing 'XFreeModifiermap'. > > >Mono-INFO: Found as 'XFreeModifiermap'. > > >Mono-INFO: DllImport attempting to load: 'libX11.so.6'. > > >Mono-INFO: DllImport loading location: 'libX11.so.6'. > > >Mono-INFO: Searching for 'XKeycodeToKeysym'. > > >Mono-INFO: Probing 'XKeycodeToKeysym'. > > >Mono-INFO: Found as 'XKeycodeToKeysym'. > > > > > >The lines above are the last lines I get and then mono just hangs and > > >starts > > >eating cpu time without getting any further. I've since tried other apps > > >and > > >they all have the same effect. I can only assume after hours of playing > > >around that my keyboard settings are defunct but I don't see how. > > >Here is a snippet from my /etc/X11/xorg.conf, I have tried it both with > > > the commented lines working and disabled. > > > > > >Section "InputDevice" > > > Identifier "Keyboard1" > > > Driver "kbd" > > ># Option "AutoRepeat" "500 30" > > ># Specify which keyboard LEDs can be user-controlled (eg, with xset(1)) > > ># Option "XkbRules" "xorg" > > ># Option "XkbModel" "pc105" > > ># Option "XkbLayout" "gb" > > >EndSection > > > > > >Does anyone have any ideas? > > > > > >thanks, > > > > > >Adam Wood > > >_______________________________________________ > > >Mono-winforms-list maillist - [email protected] > > >http://lists.ximian.com/mailman/listinfo/mono-winforms-list > > _______________________________________________ > Mono-winforms-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
