[Mono-winforms-list] Still can't get winforms to work

Jackson Harper jackson@ximian.com
Tue, 28 Sep 2004 07:51:24 -0700


On Tue, 2004-09-28 at 15:25 +0100, PFJ wrote:
> Hi,
> 
> I've compiled the latest cvs with the --with-preview option.
> 
> I can compile code which uses winforms without a problem, but when I try
> to run the compiled program, all I seem to get is
> 
> 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.
> DllNotFoundException: winelib.exe.so

  This error is not in current CVS. Either you have not compiled and
installed current CVS mono OR you have two mono's installed. Try 'which
mono' and make sure it is the same as your --prefix when building.

> in <0x00050> (wrapper managed-to-native) System.Windows.Forms.Win32:
> WineLoadLibrary (string)
> <in 0x00390> System.Windows.Forms.Win32:.cctor ()
> 
> Is it likely that I have something somewhere which is causing mono to
> bork when being called? I can't see anything in /usr/local/lib which
> would cause the problem.

  What about in /usr/local is there a mono in there?

Jackson


> mono/mcs and associated libs are installed in /usr
> 
> TTFN
> 
> Paul
>