[Mono-bugs] [Bug 75693][Wis] New - ListBox giving linked list
corruption
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 2 14:16:44 EDT 2005
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 paul at all-the-johnsons.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=75693
--- shadow/75693 2005-08-02 14:16:44.000000000 -0400
+++ shadow/75693.tmp.19097 2005-08-02 14:16:44.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 75693
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Fedora Core 4
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: paul at all-the-johnsons.co.uk
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ListBox giving linked list corruption
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Below is a small piece of code which uses a ListBox. It will compile and
+run fine, but when it exits, there is a report of a linked list corruption
+
+Steps to reproduce the problem:
+1. compile and run the application generated from the source
+2.
+3.
+
+Actual Results:
+There is a lot of backtrace (run it and see - sorry, I can't capture it)
+
+Expected Results:
+Should exit fine
+
+How often does this happen?
+Always
+
+Additional Information:
+The source. Compile : mcs listbox.cs -r:System.Drawing -r:System.Windows.Form
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+class ListBoxDemo : Form
+{
+ ListBoxDemo()
+ {
+ ListBox lb = new ListBox();
+ for (int i = 0; i < 10; i++)
+ lb.Items.Add(i.ToString());
+ lb.Location = new Point (10, 10);
+ lb.SelectedValueChanged += new EventHandler(OnSelect);
+ Controls.Add(lb);
+ }
+
+ public void OnSelect(object src, EventArgs ea)
+ {
+ ListBox lb = (ListBox) src;
+ Console.WriteLine(lb.SelectedItem);
+ }
+
+ public static void Main()
+ {
+ Application.Run(new ListBoxDemo());
+ }
+}
More information about the mono-bugs
mailing list