[Mono-bugs] [Bug 80458][Blo] New - MWF broken under cygwin

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 08:50:33 EST 2007

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 everaldo at simios.org.


--- shadow/80458	2007-01-05 08:50:33.000000000 -0500
+++ shadow/80458.tmp.16779	2007-01-05 08:50:33.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80458
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP (Cygwin)
+OS Details: 
+Status: NEW   
+Priority: Blocker
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: everaldo at simios.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: MWF broken under cygwin
+I dont know when this problem begging but MWF is not working under cygwin,
+maybe something in marshaling. After execute any MWF application you have
+this error:
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+  at (wrapper managed-to-native)
+ge (System.Windows.Forms.MSG&,intptr,int,int)
+  at System.Windows.Forms.XplatUIWin32.GetMessage
+(System.Windows.Forms.MSG& msg
+, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, Boolean blocking) [0x00000]
+  at System.Windows.Forms.XplatUIWin32.GetMessage (System.Object queue_id,
+m.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
+  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
+dows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+ms.ApplicationContext context) [0x00000]
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [
+  at MainForm.Main () [0x00000]
+If you go to XplatUIStructs.cs and comment the line:
+    internal object refobject;
+under MSG struct, and comment 2 other lines under XplatUIX11.cs and
+X11Internal/X11Display.cs that uses refobject them everything works fine.
+As this refobject was added in r67787 I think that problem is something
+when you call pinvoke with bigger MSG struct.

More information about the mono-bugs mailing list