[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:45:15 -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.


--- shadow/59000	2004-05-26 18:37:32.000000000 -0400
+++ shadow/59000.tmp.20431	2004-05-26 18:45:15.000000000 -0400
@@ -366,6 +366,36 @@
 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?  
+------- Additional Comments From kingdurin@yahoo.com  2004-05-26 18:45 -------
+OK, I thought that maybe I would give it a try compiling against the 
+Microsoft System.Drawing and System.Windows.Forms.  It compiles with 
+MCS, but when I run "mono Form1.exe" I get the following output:
+Compat mode: the request from E:\Documents and 
+Settings\Administrator\My Documents\Visual Studio Projects\Heroes 4 
+orm1.exe to load System.Windows.Forms was remapped (http://www.go-
+Could not load winelib.exe.so
+Unhandled Exception: System.EntryPointNotFoundException: GetDC
+in <0x00050> (wrapper managed-to-native) System.Drawing.GDIPlus:GetDC 
+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, this is funny, because it seems to me that mono should only 
+redirect the assembly references if the referenced assembly is not 
+available, which would be the case on *nix or even a windows system 
+that doesn't mave the Microsoft .Net Framework installed.