[Mono-bugs] [Bug 77178][Wis] New - Text boxes do not work in
Windows Forms
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Jan 7 10:50:42 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 don at edvalson.net.
http://bugzilla.ximian.com/show_bug.cgi?id=77178
--- shadow/77178 2006-01-07 10:50:42.000000000 -0500
+++ shadow/77178.tmp.27940 2006-01-07 10:50:42.000000000 -0500
@@ -0,0 +1,100 @@
+Bug#: 77178
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Windows XP
+OS Details: Windows XP SP2
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: don at edvalson.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Text boxes do not work in Windows Forms
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+On version 1.1.10 and later releases of Mono, the textbox control causes
+an exception as soon as any text is entered into it. It works fine in
+1.1.9.1 and earlier.
+
+
+Steps to reproduce the problem:
+1. Create a simple Windows Forms application with a single text box on
+the form.
+2. Compile the application and run it under mono
+3. Type anything into the form (or even try to put anything into the
+textbox using code)
+
+Actual Results:
+An exception is generated. Here is the stack trace:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in [0x00288] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:504)
+System.Windows.Forms.Line:RecalculateLine (System.Drawing.Graphics g,
+System.Windows.Forms.Document doc)
+in [0x00058] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:3364)
+ System.Windows.Forms.Document:RecalculateDocument
+(System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
+in [0x0000a] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:3326)
+ System.Windows.Forms.Document:RecalculateDocument
+(System.Drawing.Graphics g)
+in [0x0000c] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:3432)
+ System.Windows.Forms.Document:owner_HandleCreated (System.Object sender,
+System.EventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in [0x00013] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:3985)
+System.Windows.Forms.Control:OnHandleCreated (System.EventArgs e)
+in [0x00002] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:705)
+System.Windows.Forms.TextBoxBase:OnHandleCreated (System.EventArgs e)
+in [0x00002] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBox.cs:197)
+System.Windows.Forms.TextBox:OnHandleCreated (System.EventArgs e)
+in [0x00085] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:2987)
+System.Windows.Forms.Control:CreateHandle ()
+in [0x00001] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:650)
+System.Windows.Forms.TextBoxBase:CreateHandle ()
+in [0x0000c] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:1789)
+System.Windows.Forms.Control:get_Handle ()
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:get_Handle ()
+in [0x00056] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:1293)
+ System.Windows.Forms.Document:PositionCaret (System.Windows.Forms.Line
+line, Int32 pos)
+in [0x0015a] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:508)
+System.Windows.Forms.TextBoxBase:set_Text (System.String value)
+in [0x00002] (at C:\cygwin\tmp\scratch\mono-1.1.12.1
+\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBox.cs:137)
+System.Windows.Forms.TextBox:set_Text (System.String value)
+in [0x00069] (at C:\Don\monotest\Form1.cs:68)
+monotest.Form1:InitializeComponent ()
+in [0x00007] (at C:\Don\monotest\Form1.cs:31) monotest.Form1:.ctor ()
+in (wrapper remoting-invoke-with-check) monotest.Form1:.ctor ()
+in [0x00000] (at C:\Don\monotest\Form1.cs:86) monotest.Form1:Main ()
+
+Expected Results: no exception
+
+
+How often does this happen? 100%
+
+
+Additional Information:
More information about the mono-bugs
mailing list