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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77665 --- shadow/77665 2006-02-28 11:44:17.000000000 -0500 +++ shadow/77665.tmp.9014 2006-02-28 11:44:17.000000000 -0500 @@ -0,0 +1,75 @@ +Bug#: 77665 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: NRE when setting ComboBox.SelectedItem = -1 + +Description of Problem: +Setting ComboBox.SelectedItem to -1 results in a NRE. + +Steps to reproduce the problem: +1. Use a ComboBox with it's DropDownStyle set to DropDownList +2. By default the SelectedItem value is -1 (unselected) +3. Change the combo box value (e.g. GUI) +4. Reset the combo box to unselected (ComboBox.SelectedItem = -1) + +Actual Results: +Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object +in <0x00077> swf_binary.Form1:shape1_Changed (System.Object sender, +System.EventArgs e) +in (wrapper delegate-invoke) +System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) +in <0x0002b> System.Windows.Forms.ComboBox:OnSelectedIndexChanged +(System.EventArgs e) +in <0x000aa> System.Windows.Forms.ComboBox:set_SelectedIndex (Int32 value) +in <0x00017> swf_binary.Form1:resetButton_Click (System.Object sender, +System.EventArgs e) +in (wrapper delegate-invoke) +System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) +in <0x0001d> System.Windows.Forms.Control:OnClick (System.EventArgs e) +in <0x000dd> System.Windows.Forms.Button:OnClick (System.EventArgs e) +in <0x000f8> System.Windows.Forms.ButtonBase:OnMouseUp +(System.Windows.Forms.MouseEventArgs mevent) +in <0x0000d> System.Windows.Forms.Button:OnMouseUp +(System.Windows.Forms.MouseEventArgs e) +in <0x006a2> System.Windows.Forms.Control:WndProc +(System.Windows.Forms.Message m) +in <0x00060> System.Windows.Forms.ButtonBase:WndProc +(System.Windows.Forms.Message m) +in <0x0000d> System.Windows.Forms.Button:WndProc +(System.Windows.Forms.Message m) +in <0x00014> System.Windows.Forms.Control+ControlNativeWindow:WndProc +(System.Windows.Forms.Message m) +in <0x0011e> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg +msg, IntPtr wParam, IntPtr lParam) +in <0x00016> System.Windows.Forms.XplatUIX11:DispatchMessage +(System.Windows.Forms.MSG msg) +in <0x00015> System.Windows.Forms.XplatUI:DispatchMessage +(System.Windows.Forms.MSG msg) +in <0x00605> System.Windows.Forms.Application:RunLoop (Boolean Modal, +System.Windows.Forms.ApplicationContext context) +in <0x00024> System.Windows.Forms.Application:Run +(System.Windows.Forms.Form mainForm) +in <0x0002c> swf_binary.Program:Main () + + +Expected Results: +No exception. ComboBox returns to an unselected (empty) state. + +How often does this happen? +Always + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
