[Mono-bugs] [Bug 80414][Maj] New - Showing an empty form causes a stack overflow

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Dec 31 00:42:51 EST 2006

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 georgegiolfan at yahoo.com.


--- shadow/80414	2006-12-31 00:42:51.000000000 -0500
+++ shadow/80414.tmp.2899	2006-12-31 00:42:51.000000000 -0500
@@ -0,0 +1,28 @@
+Bug#: 80414
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Showing an empty form causes a stack overflow
+This program causes a stack overflow.
+using System.Windows.Forms;
+class Test {
+    static void Main() {
+        Application.Run(new Form());
+    }
+In Control.Select(Control), I think container.ActiveControl = control; 
+causes a Form's ActiveControl to be set to itself, which later causes an 
+infinite recursion in ValidateControl.

More information about the mono-bugs mailing list