[Mono-bugs] [Bug 59000][Maj] Changed - Exception occurs compiling simple form with Mono 0.91

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 26 May 2004 18:37:32 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kingdurin@yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=59000

--- shadow/59000	2004-05-26 13:43:51.000000000 -0400
+++ shadow/59000.tmp.20361	2004-05-26 18:37:32.000000000 -0400
@@ -342,6 +342,30 @@
 ------- Additional Comments From gonzalo@ximian.com  2004-05-26 13:43 -------
 Ah!
 
 I think I know what teh problem is. Edit the mcs.bat file in the
 INSTALL\bin and change: "%MONOARGS%" by "%*". If that works, I'll
 modify the generated .bat files for next installer.
+
+------- Additional Comments From kingdurin@yahoo.com  2004-05-26 18:37 -------
+OK, it compiles now, but when I run Form1.cs from Windows XP I get 
+the following output:
+
+Could not load winelib.exe.so
+Unhandled Exception: System.EntryPointNotFoundException: GetDC
+in <0x00050> (wrapper managed-to-native) System.Drawing.GDIPlus:GetDC 
+(intptr)
+in <0x000c7> System.Drawing.Font:FromHfont (intptr)
+in <0x00015> System.Windows.Forms.Control:get_DefaultFont ()
+in <0x00199> System.Windows.Forms.Control:.ctor ()
+in <0x0000e> System.Windows.Forms.ScrollableControl:.ctor ()
+in <0x0000a> System.Windows.Forms.ContainerControl:.ctor ()
+in <0x00016> System.Windows.Forms.Form:.ctor ()
+in <0x00017> Heroes_4_Affinity.frmMain:.ctor ()
+in <0x0004c> (wrapper remoting-invoke-with-check) 
+Heroes_4_Affinity.frmMain:.ctor ()
+in <0x0001b> Heroes_4_Affinity.frmMain:Main ()
+
+Now, for stupid mono newbie question, should a WindowsXP user need 
+the Wine libraries?  Isn't the point of Wine to emulate Win32?  Why 
+would you compile against Wine if it doesn't product output that can 
+also bind to Win32?