[Mono-winforms-list] Win32 API shared libaries

Vladimir Kaluzhny vkaluzhny@openlinksw.co.uk
Thu, 25 Sep 2003 22:19:02 +0700


Hello Duncan.

Based on information below you sent I cannot find the reason of problem you
have.
I do not know how you did install shared libraries, whether ld can see them
etc.

( My installation put libraries onto /usr/local/lib directory, meantime as
yours
are located on /usr/lib... why so?)

I have tested new patches  with C and C# applications.
In both cases I see no problem. Therefore  I have no idea
what can be the reason.

As much as I can see,  your mono runtime cannot see any dll at all.
Meantime I did not change anything relevant to all previously patched
DLLs. They ware not chenged, therefore the only problems, which may
appear can be related to comdlg32.dll library only.
Rest code must be working anyway, irrelevant  whether  new patches
working or not.

Therefore, please, check your installation, run ldconfig,  etc.

Keep me informed, please.

If you want, we can talk via ICQ.
my ID is   109495385

Regards, Vlad

----- Original Message -----
From: "Duncan Mak" <duncan@ximian.com>
To: "Vladimir Kaluzhny" <vkaluzhny@openlinksw.co.uk>
Cc: <mono-winforms-list@ximian.com>; "Miguel de Icaza" <miguel@ximian.com>
Sent: Thursday, September 25, 2003 21:01
Subject: Re: [Mono-winforms-list] Win32 API shared libaries


> On Wed, 2003-09-24 at 14:36, Duncan Mak wrote:
> > Tell me how they work, if they're good, I'll push them to red carpet.
> >
>
> I just installed the package and this is what I see:
>
> diphthong:~ $ rpm -q mono-wine
> diphthong:~/Mono/winforms/button $ rpm -q mono-wine
> mono-wine-20030318-1.ximian.6.4
> diphthong:~/Mono/winforms/button $ rpm -ql mono-wine
> /usr/bin/mono-wine-setup
> /usr/bin/win32server
> /usr/lib/libadvapi32.dll.so
> /usr/lib/libcomctl32.dll.so
> /usr/lib/libcomdlg32.dll.so
> /usr/lib/libgdi32.dll.so
> /usr/lib/libkernel32.dll.so
> /usr/lib/libole32.dll.so
> /usr/lib/librpcrt4.dll.so
> /usr/lib/libshell32.dll.so
> /usr/lib/libshlwapi.dll.so
> /usr/lib/libuser32.dll.so
> /usr/lib/libwin32.so.1.0
> /usr/lib/libwin32_unicode.so
> /usr/lib/libwin32_unicode.so.1.0
> /usr/lib/libwinnt.dll.so
> /usr/lib/libwinspool.dll.so
> /usr/lib/libx11drv.dll.so
> /usr/lib/mono-wine/dot-wine.tar.gz
> diphthong:~/Mono/winforms/button $ mono swf-buttons.exe
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libuser32.dll.so (user32.dll): ./libuser32.dll.so: cannot open shared
> object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libuser32.dll.so (user32.dll): ./libuser32.dll.so: cannot open shared
> object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libkernel32.dll.so (kernel32.dll): ./libkernel32.dll.so: cannot open
> shared object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libkernel32.dll.so (kernel32.dll): ./libkernel32.dll.so: cannot open
> shared object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libwinnt.dll.so (libwinnt.dll.so): ./libwinnt.dll.so: cannot open
> shared object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libwinnt.dll.so (libwinnt.dll.so): ./libwinnt.dll.so: cannot open
> shared object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libwinnt.dll.so (libwinnt.dll.so): ./libwinnt.dll.so: cannot open
> shared object file: No such file or directory
>
> ** (swf-buttons.exe:22978): WARNING **: Failed to load library
> ./libwinnt.dll.so (libwinnt.dll.so): ./libwinnt.dll.so: cannot open
> shared object file: No such file or directory
> MonoWin32: Initializing WineLib
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.Control --->
> 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 <0x0010c> System.Windows.Forms.Win32:.cctor ()
> --- End of inner exception stack trace ---
>
> --- End of inner exception stack trace ---
>
> in (unmanaged) System.Windows.Forms.Control:.ctor ()
> in <0x0000e> System.Windows.Forms.ScrollableControl:.ctor ()
> in <0x00014> System.Windows.Forms.ContainerControl:.ctor ()
> in <0x00017> System.Windows.Forms.Form:.ctor ()
> in <0x0000a> MyFormProject.MainForm:.ctor ()
> in <0x0004f> (wrapper remoting-invoke-with-check)
> MyFormProject.MainForm:.ctor (
> )
> in <0x0001e> MyFormProject.MainForm:Main (string[])
>
>
>