AW: [Mono-winforms-list] running a win32 winforms app

Krieg Andreas Krieg.Andreas@OCE.DE
Mon, 16 Jun 2003 11:18:23 +0200


Hi,

I had the same problems (with the .so.so messages) but I only set the
LD_LIBRARY_PATH to /usr/local/lib/wine and added the dllmap entries to =
the
config file, I get now the following exception (using the SWFTest =
porgram in
mcs/class/System.Windows.Forms/SWFTest):

Unhandled Exception: System.TypeInitializationException: An exception =
was
thrown by the type initializer
for System.Windows.Forms.Control ---> System.NullReferenceException: A =
null
value was found where an object instance was required
--- End of inner exception stack trace ---

in (unmanaged) 00 System.Windows.Forms.Control:.ctor ()
in <0x0000e> 00 System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00014> 00 System.Windows.Forms.ContainerControl:.ctor ()
in <0x0001b> 00 System.Windows.Forms.Form:.ctor ()
in <0x0000a> 00 SWFTest.Form1:.ctor ()
in <0x00054> 08 SWFTest.Form1:.ctor ()
in <0x0001e> 00 SWFTest.Form1:Main ()

Maybe I have something wrong, because the configure.in file from the
OpenLink patch doesn't seem to fit to the configure.in file from the =
mono
CVS..

Thanks

-----Urspr=FCngliche Nachricht-----
Von: Ryan Underwood [mailto:nemesis-lists@icequake.net]=20
Gesendet: Sonntag, 15. Juni 2003 01:17
An: mono-winforms-list@lists.ximian.com
Betreff: [Mono-winforms-list] running a win32 winforms app



Hi,

I have this silly win32-built .net windows.forms application =
(setup.exe)
which is a menu frontend to a program that a client uses.  I am trying =
to
get it to run under mono.  I have installed the debian unstable =
versions of
mono 0.24 packages, and I try to execute the program like: $ mono =
setup.exe

This complains about tons of missing libuser32.dll.so and such. =
Searching
the mailing lists indicated that I needed to add some lines to
/etc/mono/config:

<dllmap dll=3D"user32.dll" target=3D"user32.dll.so" />
<dllmap dll=3D"kernel32.dll" target=3D"kernel32.dll.so" />
<dllmap dll=3D"gdi32.dll" target=3D"gdi32.dll.so" />
<dllmap dll=3D"shell32.dll" target=3D"shell32.dll.so" />
<dllmap dll=3D"comctl32.dll" target=3D"comctl32.dll.so" />

But afterwards, instead of looking for e.g. user32.dll.so as would make
sense, it looks for libuser32.dll.so.so instead.  Even more wrong! :)

So, I make symbolic links in /usr/lib/wine with lib*.dll.so pointing to
*.dll.so, and export LD_LIBRARY_PATH=3D/usr/lib/wine, and run mono.  =
Then, it
gives no dll errors but immediately gives a null exception and stops, =
until
I press Ctrl-C.

So, anyone have any ideas about the proper procedure to follow or where =
I
goofed up? :)

Thanks,
--=20
Ryan Underwood, <nemesis at icequake.net>, icq=3D10317253
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list