[Mono-bugs] [Bug 78821][Nor] New - Databound TextBox crashes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 11 14:16:03 EDT 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 roger.jakobsson at jorosoft.se.
http://bugzilla.ximian.com/show_bug.cgi?id=78821
--- shadow/78821 2006-07-11 14:16:03.000000000 -0400
+++ shadow/78821.tmp.9484 2006-07-11 14:16:03.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 78821
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Ubuntu
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: roger.jakobsson at jorosoft.se
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Summary: Databound TextBox crashes
+
+Description of Problem:
+Simple DataTable bound to a TextBox crashes with NullReferenceException
+
+Steps to reproduce the problem:
+1. Compile the following:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+using System.Data;
+
+namespace BindingTest060711
+{
+ class Form1 : Form
+ {
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+
+ public Form1()
+ {
+ TextBox txt = new TextBox();
+ this.Controls.Add(txt);
+
+ DataTable tb = new DataTable("TestTable");
+ tb.Columns.Add("Col1");
+ tb.Rows.Add(new string[] {"row 1"} );
+
+ txt.DataBindings.Add("Text", tb, "Col1");
+ }
+ }
+}
+
+2. Run in Mono/Linux
+3. Click or drag the form
+
+Actual Results:
+System.NullReferenceException: Binding.SetPropertyValue
+
+Expected Results:
+No crash when moving/clicking in form.
+The textbox should display the bound value, it's empty now.
+
+How often does this happen?
+Always
+
+Additional Information:
+Tested in Ubuntu 6.06 with Mono from SVN as of today
More information about the mono-bugs
mailing list