[Mono-bugs] [Bug 77320][Nor] New - Items are removed from combo box after selection

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 22 06:17:32 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 mono-list.1.tracyanne at spamgourmet.com.

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

--- shadow/77320	2006-01-22 06:17:32.000000000 -0500
+++ shadow/77320.tmp.22574	2006-01-22 06:17:32.000000000 -0500
@@ -0,0 +1,270 @@
+Bug#: 77320
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: mono-list.1.tracyanne at spamgourmet.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Items are removed from combo box after selection
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+use code found at
+http://svn.myrealbox.com/viewcvs/trunk/winforms/combobox/swf-combobox-single.cs?rev=40235&view=markup
+
+
+
+2. using a combo box with DropDownStyle = ComboBoxStyle.DropDownList;
+
+with a long list that triggers a scroll bar
+
+
+
+3. select an item from near the end of the List, or the end of the List.
+Then attempt to select another item
+
+
+Actual Results:
+
+The first item can be selected, but when you attempt to select another item
+the test application crashes with the following exception history(s)
+
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
+Keyboard: United States keyboard layout (phantom key version)
+Gtk colorscheme read
+ComboBox Size {Width=120, Height=23}
+ComboBox IntegralHeight True
+ComboBox ItemHeight 17
+ComboBox FontHeight 15
+ComboBox String System.Windows.Forms.ComboBox, Items.Count:944
+
+Unhandled Exception: System.ArgumentException: '943' is not a valid value
+for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
+in [0x0008d] System.Windows.Forms.ScrollBar:set_Value (Int32 value)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_Value (int)
+in [0x002fb] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1597)
+System.Windows.Forms.ComboBox+ComboListBox:CalcListBoxArea ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1974)
+System.Windows.Forms.ComboBox+ComboListBox:ShowWindow ()
+in (wrapper remoting-invoke-with-check) ComboListBox:ShowWindow ()
+in [0x0006e] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1077)
+System.Windows.Forms.ComboBox:DropDownListBox ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1154)
+System.Windows.Forms.ComboBox:OnMouseDownCB (System.Object sender,
+System.Windows.Forms.MouseEventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_MouseEventArgs
+(object,System.Windows.Forms.MouseEventArgs)
+in [0x00013] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4101)
+System.Windows.Forms.Control:OnMouseDown
+(System.Windows.Forms.MouseEventArgs e)
+in [0x002ff] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3707)
+System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m)
+in [0x00053] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:939)
+System.Windows.Forms.ComboBox:WndProc (System.Windows.Forms.Message m)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:158)
+System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in [0x00056] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146)
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam)
+in [0x0001c] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2224)
+System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00006] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:380)
+System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x0023f] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in [0x00005] (at
+/home/tracy/removable/Development/cvscombotest/Form1.cs:1115)
+MyFormProject.MainForm:Main (System.String[] args)
+
+
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
+Keyboard: United States keyboard layout (phantom key version)
+Gtk colorscheme read
+ComboBox Size {Width=120, Height=23}
+ComboBox IntegralHeight True
+ComboBox ItemHeight 17
+ComboBox FontHeight 15
+ComboBox String System.Windows.Forms.ComboBox, Items.Count:944
+
+Unhandled Exception: System.ArgumentException: '935' is not a valid value
+for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
+in [0x0008d] System.Windows.Forms.ScrollBar:set_Value (Int32 value)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_Value (int)
+in [0x002fb] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1597)
+System.Windows.Forms.ComboBox+ComboListBox:CalcListBoxArea ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1974)
+System.Windows.Forms.ComboBox+ComboListBox:ShowWindow ()
+in (wrapper remoting-invoke-with-check) ComboListBox:ShowWindow ()
+in [0x0006e] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1077)
+System.Windows.Forms.ComboBox:DropDownListBox ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1154)
+System.Windows.Forms.ComboBox:OnMouseDownCB (System.Object sender,
+System.Windows.Forms.MouseEventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_MouseEventArgs
+(object,System.Windows.Forms.MouseEventArgs)
+in [0x00013] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4101)
+System.Windows.Forms.Control:OnMouseDown
+(System.Windows.Forms.MouseEventArgs e)
+in [0x002ff] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3707)
+System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m)
+in [0x00053] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:939)
+System.Windows.Forms.ComboBox:WndProc (System.Windows.Forms.Message m)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:158)
+System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in [0x00056] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146)
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam)
+in [0x0001c] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2224)
+System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00006] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:380)
+System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x0023f] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in [0x00005] (at
+/home/tracy/removable/Development/cvscombotest/Form1.cs:1115)
+MyFormProject.MainForm:Main (System.String[] args)
+
+
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
+Keyboard: United States keyboard layout (phantom key version)
+Gtk colorscheme read
+
+Unhandled Exception: System.ArgumentException: '10' is not a valid value
+for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
+in [0x0008d] System.Windows.Forms.ScrollBar:set_Value (Int32 value)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_Value (int)
+in [0x002fb] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1597)
+System.Windows.Forms.ComboBox+ComboListBox:CalcListBoxArea ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1974)
+System.Windows.Forms.ComboBox+ComboListBox:ShowWindow ()
+in (wrapper remoting-invoke-with-check) ComboListBox:ShowWindow ()
+in [0x0006e] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1077)
+System.Windows.Forms.ComboBox:DropDownListBox ()
+in [0x00054] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:1154)
+System.Windows.Forms.ComboBox:OnMouseDownCB (System.Object sender,
+System.Windows.Forms.MouseEventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_MouseEventArgs
+(object,System.Windows.Forms.MouseEventArgs)
+in [0x00013] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4101)
+System.Windows.Forms.Control:OnMouseDown
+(System.Windows.Forms.MouseEventArgs e)
+in [0x002ff] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3707)
+System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m)
+in [0x00053] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs:939)
+System.Windows.Forms.ComboBox:WndProc (System.Windows.Forms.Message m)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:158)
+System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in [0x00056] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146)
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam)
+in [0x0001c] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2224)
+System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00006] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:380)
+System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x0023f] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/tmp/scratch/BUILD/mono-1.1.13.2/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in [0x00005] (at
+/home/tracy/removable/Development/Projects/winControls/Form1.cs:235)
+WinControls.Form1:Main ()
+
+
+If one uses a short list (max 8 items) that does not trigger a scroll bar.
+When one selects an item and then attempts to select another item, any
+items prior to the recently selected item have been removed from the list.
+
+
+
+Expected Results:
+
+One should be able to select any item from anywhere in the dropdown list,
+items prior to the recently selected item should not be removed from the
+list and, when there is a scroll bar, the application should not crash.
+
+
+How often does this happen? 
+
+Every time
+
+
+Additional Information:
+
+I am using Mandriva Linux 2006.0 with the SuSE 9.2 RPMs
+
+I have tested this with the Microsoft code I published on Mono-List and the
+code I retrieved from
+http://svn.myrealbox.com/viewcvs/trunk/winforms/combobox/swf-combobox-single.cs?rev=40235&view=markup


More information about the mono-bugs mailing list