[Mono-bugs] [Bug 81796][Nor] New - PropertyGrid does not correctly change SelectedObject - it crashs

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 1 12:35:30 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 michal.kovac.develop at centrum.cz.

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

--- shadow/81796	2007-06-01 12:35:30.000000000 -0400
+++ shadow/81796.tmp.10825	2007-06-01 12:35:30.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 81796
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: michal.kovac.develop at centrum.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PropertyGrid does not correctly change SelectedObject - it crashs
+
+Description of Problem:
+When you set property SelectedObject of PropertyGrid to object with 
+properties, then to some object without properties and after that to 
+object with properties, it will crash
+
+Steps to reproduce the problem:
+1. Create application with PropertyGrid and two buttons (button1, button2)
+2. Create class without any property (I will use the name TestCleanClass 
+for it)
+3. OnLoad of Form with property grid call this:
+this.propertyGrid1.SelectedObject = button1;
+this.propertyGrid1.SelectedObject = new TestCleanClass();
+this.propertyGrid1.SelectedObject = button2;
+
+Actual Results:
+The application crashs
+
+Expected Results:
+The property grid will show properties of button2


More information about the mono-bugs mailing list