https://bugzilla.novell.com/show_bug.cgi?id=660294
https://bugzilla.novell.com/show_bug.cgi?id=660294#c0 Summary: Setting ComboBox.SelectedText to null crashes Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: x86 OS/Version: Windows 7 Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 Setting ComboBox.SelectedText to null crashes System.Windows.Forms on Mono. This causes no problem in Windows and appears to have the same effect as setting it to "". In my own app I fixed this with = text ?? "". In any case, crashes in Mono, not in MS.NET. Reproducible: Always Steps to Reproduce: 1. 2. 3. Stack trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Windows.Forms.Document.Insert (System.Windows.Forms.Line line, Int32 pos, Boolean update_caret, System.String s, System.Windows.Forms.LineTag tag) [0x00016] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:1997 at System.Windows.Forms.Document.Insert (System.Windows.Forms.Line line, Int32 pos, Boolean update_caret, System.String s) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:1977 at System.Windows.Forms.Document.ReplaceSelection (System.String s, Boolean select_new) [0x0021d] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:3245 at System.Windows.Forms.TextBoxBase.set_SelectedText (System.String value) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:540 at System.Windows.Forms.ComboBox.set_SelectedText (System.String value) [0x0000d] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.8.1\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ComboBox.cs:715 at (wrapper remoting-invoke-with-check) System.Windows.Forms.ComboBox:set_SelectedText (string) at Sabertooth.ConnectForm.Show (IWin32Window owner, Nullable`1 portInfo, Boolean currentPortsOnly, Boolean showAddress, System.Func`2 completeFunc, Sabertooth.ConnectForm& form) [0x00000] in <filename unknown>:0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
