[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.

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

--- 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   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: everaldo at simios.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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)
+System.Windows.Forms.XplatUIWin32:Win32GetMessa
+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,
+Syste
+m.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
+[0x00
+000]
+  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
+System.Win
+dows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [0x00000]
+
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.For
+ms.ApplicationContext context) [0x00000]
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [
+0x00000]
+  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