[Pkg-mono-devel] Re: Windows.Forms on Debian
David Wright
ichbin@shadlen.org
Fri, 09 Apr 2004 10:32:31 -0700
>Have you installed mono-assemblies-arch?
>
>
>
Yes, I have. I see that it includes a /usr/lib/winelib.exe.so. If I
create a softlink
/usr/lib/libwinnt.dl.so -> /usr/lib/winelib.exe.so
then mono doesn't complain about finding libwinnt.dll.so, but it still
fails, with the following message:
** (mono-hello-window.exe:8891): WARNING **: Failed to load function
PROCESS_InitWine from libwinnt.dll.so
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Windows.Forms.Win32 --->
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> (wrapper managed-to-native)
System.Windows.Forms.Win32:PROCESS_InitWine (int,string[])
in <0x00374> System.Windows.Forms.Win32:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Windows.Forms.Win32:MessageBoxA
(intptr,string,string,uint)
in <0x00026> System.Windows.Forms.MessageBox:Show (string)
in <0x0000f> .Hello:Main ()
The problem seems to be that it can't find
PROCESS_InitWine(int,string[]) in libwine.exe.so. It seems to me we need
someone who knows about wine to tell us what shared library is supposed
to be a proxy for libwinnt.dll, or what shared library containes the
InitWine funciton.
By the way, does anyone reading this actually have a WinForms app
working on Debian?