[Mono-winforms-list] Winform exception
Tomasz Kubacki
j23tom@o2.pl
Thu, 03 Feb 2005 06:27:44 +0100
Hi there,
i've compiled mono from svn in 'all-the-johnsons' (got version 40030)
way and when i try to RUN simple Windows.Form app. like this:
using System;
using System.Drawing;
using System.Windows.Forms;
class MyForm : Form
{
public MyForm()
{
}
public static void Main()
{
MyForm tt=null ;
tt = new MyForm();
Application.Run(tt);
}
}
Window appear for a moment and app breaks with Exception. (see below)
[tomasz@jlinux testy]$ mono MyForm.exe
6 keysymbols per a keycode is not supported, setting to 4
done detecting keyboard: United States keyboard layout (phantom key
version)
#region #line XplatUI Constructor called
adding window: System.TypeInitializationException: An exception was
thrown by the type initializer for Mono.Unix.Syscall --->
System.DllNotFoundException: libMonoPosixHelper.so
in <0x0004a> (wrapper managed-to-native) Mono.Unix.Syscall:_L_ctermid ()
in <0x00008> Mono.Unix.Syscall:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) 0x8084711
in <0x00114> System.Windows.Forms.XplatUIX11:UpdateMessageQueue ()
in <0x00070> System.Windows.Forms.XplatUIX11:GetMessage
(System.Windows.Forms.MSG&,intptr,int,int)
in <0x0001e> System.Windows.Forms.XplatUI:GetMessage
(System.Windows.Forms.MSG&,intptr,int,int)
in <0x00112> System.Windows.Forms.Application:Run ()
in <0x000ac> System.Windows.Forms.Application:Run
(System.Windows.Forms.ApplicationContext)
in <0x00032> System.Windows.Forms.Application:Run
(System.Windows.Forms.Form)
in <0x000a8> MyForm:Main ()
-------------------------------------------------------------------
[libMonoPosixHelper.so is present in mono path]
I don't know if this has something in common with that, but when i run
'make check' against mono i get :
[...]
NUnit version 2.2.0
Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov, Charlie Poole.
Copyright (C) 2000-2003 Philip Craig.
All Rights Reserved.
OS Version: Unix 2.6.10.1 Mono Version: 1.1.4322.573
Excluded categories: NotWorking,ValueAdd,CAS,InetAccess
.N.F............
Tests run: 13, Failures: 1, Not run: 1, Time: 1,272362 seconds
Failures:
1) MonoTests.Mono.Unix.StdlibTest.Snprintf : #SNPF: printf of many
builtin types failed
String lengths are both 101.
Strings differ at index 82.
expected:<"...\t int: 32\n\t long: 64\n\t float: 32,23\n
\tdouble: 64,46\n">
but was:<"...\t int: 32\n\t long: 64\n\t float: 32.23\n
\tdouble: 64.46\n">
------------------------------------------------------^
in [0x000de]
(at /home/tomasz/usr/mcs/class/Mono.Posix/Test/Mono.Unix/StdlibTest.cs:91) MonoTests.Mono.Unix.StdlibTest:Snprintf ()
in (unmanaged) 0x8085bf4
in <0x00004> (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])
in [0x00033]
(at /home/tomasz/usr/mcs/class/corlib/System.Reflection/MonoMethod.cs:121) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
Tests not run:
1) MonoTests.Mono.Unix.StdlibTest.Signal : Sending Signals from inside
Mono hangs the program
make[7]: *** [run-test-lib] Błąd 1
make[7]: Leaving directory `/home/tomasz/usr/mcs/class/Mono.Posix'
make[6]: *** [run-test] Błąd 2
make[6]: Leaving directory `/home/tomasz/usr/mcs/class/Mono.Posix'
make[5]: *** [run-test-recursive] Błąd 1
make[5]: Leaving directory `/home/tomasz/usr/mcs'
make[4]: *** [profiles-do--run-test] Błąd 1
make[4]: Leaving directory `/home/tomasz/usr/mcs'
make[3]: *** [mcs-do-run-test-profiles] Błąd 1
make[3]: Leaving directory `/home/tomasz/usr/mono/runtime'
make[2]: *** [check-local] Błąd 2
make[2]: Leaving directory `/home/tomasz/usr/mono/runtime'
make[1]: *** [check-am] Błąd 2
make[1]: Leaving directory `/home/tomasz/usr/mono/runtime'
make: *** [check-recursive] Błąd 1
------------------------------------------------
My locales: pl_PL.UTF-8 (on FC3 box).
Any sugestions ?
regards,
Tomasz Kubacki