[Mono-list] Some general advice for a newbie, please

Jonathan Pryor jonpryor@vt.edu
Thu, 30 Dec 2004 18:38:56 -0500


Further proving that we need to update the FAQ...

System.Windows.Forms is not complete.  Not remotely complete.

You're attempting to run the 2nd-generation System.Windows.Forms
implementation (Wine-based).  This has been discarded (it was too
complicated), and work is going on to implement a 3rd version.

The current effort will not be complete until Q2/2005 at the earliest.

In short, your code will compile, but it won't run.

 - Jon

On Thu, 2004-12-30 at 23:04 +0000, peter wrote:
> Following some of the kind advice I've had, I tried the following (from 
> the Borland site except that I've done it in monodevelop and added 
> references to System.Windows.Forms and System.Drawing.
> 
> using System;
> using System.Windows.Forms;
> using System.Drawing;
> 
> class HelloWindowsForms {
>     static void Main() {
>         MessageBox.Show("Welcome to the Bill-free zone!");
>     }
> }
> 
> This appears to compile OK, but when I try to run it from the IDE, I get:
> 
> Could not load winelib.exe.so
> Unhandled Exception: System.TypeInitializationException: An exception 
> was thrown by the type initializer for System.Windows.Forms.Win32 ---> 
> System.DllNotFoundException: winelib.exe.so
> in <0x00053> (wrapper managed-to-native) 
> System.Windows.Forms.Win32:WineLoadLibrary (string)
> in [0x0014b] (at 
> /cvs/1-mono/mcs/class/System.Windows.Forms/System.Windows.Forms/win32functions.cs:1430) 
> System.Windows.Forms.Win32:.cctor ()
> --- End of inner exception stack trace ---
> 
> in (unmanaged) System.Windows.Forms.MessageBox:Show (string)
> in [0x00011] (at 
> /cvs/1-mono/mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBox.cs:59) 
> System.Windows.Forms.MessageBox:Show (string)
> in [0x00005] (at 
> /home/peter/Projects/HelloWindowsForms/frmHelloWindows.cs:10) 
> HelloWindowsForms:Main ()
> 
> 
> press any key to continue...
> 
> Can anyone help?
> 
> Cheers
> 
> Peter
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list