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=79812 --- shadow/79812 2006-11-02 16:34:45.000000000 -0500 +++ shadow/79812.tmp.19142 2006-11-02 16:34:45.000000000 -0500 @@ -0,0 +1,43 @@ +Bug#: 79812 +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: Exception adding non string objects to a sorted ComboBox + +Description of Problem: +If you add a second non-string object to a sorted combobox, the sort +mechanism tries to cast each object as a string, resulting in an +InvalidCastException. + +Steps to reproduce the problem: +1. Run attached program. + +Actual Results: +Unhandled Exception: System.InvalidCastException: Cannot cast from source +type to destination type. + at System.Windows.Forms.ComboBox+ObjectCollection.AddItem (System.Object +item) [0x00000] + at System.Windows.Forms.ComboBox+ObjectCollection.Add (System.Object +item) [0x00000] + at MonoTest32.Form1..ctor () [0x00000] + at (wrapper remoting-invoke-with-check) MonoTest32.Form1:.ctor () + at MonoTest32.Form1.Main () [0x00000] + +Expected Results: +Form with combobox with 2 items. + +Additional Information: +The crash is line 1424 is ComboBox: +foreach (string s in object_items) { _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
