[Mono-bugs] [Bug 80821][Nor] Changed - Wrong thread behavior with Show and ShowDialog (InvokeRequired)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 13 12:48:04 EDT 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 monkey at jpobst.com.

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

--- shadow/80821	2007-02-13 05:49:47.000000000 -0500
+++ shadow/80821.tmp.32130	2007-03-13 11:48:04.000000000 -0500
@@ -1,22 +1,21 @@
 Bug#: 80821
 Product: Mono: Class Libraries
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: bugzilla at woy.nl               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: Wrong thread behavior with Show and ShowDialog (InvokeRequired)
 
 When calling ShowDialog ( or Show ) on a form on wich the InvokeRequired of
 the Owner is true, mono doesn't throw an exception. The microsoft
 implementation does.
 I Also have some problems with an unresponsive UI when using owner.Invoke (
@@ -69,6 +68,17 @@
         ColorDialog dialog = new ColorDialog();
         dialog.ShowDialog(this);
     } 
 }
 
 P.S: this is on Mono 1.2.3 on Windows.
+
+------- Additional Comments From monkey at jpobst.com  2007-03-13 11:48 -------
+I made this into a complete sample which is attached.  I can't get MS
+.net to throw any exception when InvokeRequired = true.  I am testing
+on .Net 2.0.  What version are you using?
+
+The 3rd part looks a lot trickier.  Clicking the first button, closing
+the dialog, clicking the second button, closing the dialog, and
+clicking the first button again seems to always call the problem.  It
+looks like we are making a call to win32's EnableWindow that isn't
+returning, but I haven't looked into it any further.


More information about the mono-bugs mailing list