[Mono-bugs] [Bug 78651][Nor] New - TextBoxBase: Undo of multiline
deletion causes crash
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jun 15 06:31:01 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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78651
--- shadow/78651 2006-06-15 06:31:01.000000000 -0400
+++ shadow/78651.tmp.494 2006-06-15 06:31:01.000000000 -0400
@@ -0,0 +1,100 @@
+Bug#: 78651
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: TextBoxBase: Undo of multiline deletion causes crash
+
+Do following:
+
+- run winforms/wordpad/wordpad.exe
+- enter multi line text
+- select all text and type CTRL+X to cut them.
+- type CTRL+Z to undo.
+
+... or if you want easier one to debug, use this:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+ public static void Main ()
+ {
+ Application.Run (new Test ());
+ }
+
+ public Test ()
+ {
+ TextBox tb = new TextBox ();
+ tb.Multiline = true;
+ tb.Size = new Size (100, 100);
+ Controls.Add (tb);
+ }
+}
+
+Actual Results:
+
+$ mono --debug ../../svn/winforms/wordpad/wordpad.exe
+Mono System.Windows.Forms Assembly [$auto_build_revision$]
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+ at System.Windows.Forms.UndoClass.Undo () [0x000e8] in
+path_to_swf\TextControl.cs:4464
+ at System.Windows.Forms.TextBoxBase.Undo () [0x00000] in
+path_to_swf\TextBoxBase.cs:689
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.TextBoxBase:Undo()
+ at WordPad.WordPadMenu.DoUndo (System.Object sender, System.EventArgs e)
+[0x00000]
+ at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+ at System.Windows.Forms.MenuItem.OnClick (System.EventArgs e) [0x0000b]
+in path_to_swf\MenuItem.cs:456
+ at System.Windows.Forms.MenuItem.PerformClick () [0x00000] in
+path_to_swf\MenuItem.cs:496
+
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.MenuItem:PerformClick ()
+ at System.Windows.Forms.MenuTracker.ProcessShortcut (Keys keyData)
+[0x00026] in path_to_swf\MenuAPI.cs:624
+ at System.Windows.Forms.MenuTracker.ProcessKeys
+(System.Windows.Forms.Message msg, Keys keyData) [0x00000] in
+path_to_swf\MenuAPI.cs:630
+ at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message msg,
+Keys keyData) [0x0000e] in path_to_swf\Menu.cs:262
+ at System.Windows.Forms.Form.ProcessCmdKey (System.Windows.Forms.Message msg,
+Keys keyData) [0x0001b] in path_to_swf\Form.cs:1552
+ at System.Windows.Forms.Control.ProcessCmdKey
+(System.Windows.Forms.Message msg, Keys keyData) [0x0002c] in
+path_to_swf\Control.cs:3304
+ at System.Windows.Forms.Control.PreProcessMessage
+(System.Windows.Forms.Message msg) [0x00038] in path_to_swf\Control.cs:2991
+ at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00214] in
+path_to_swf\Application.cs:482
+ at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000] in path_to_swf\Application.cs:383
+ at WordPad.WordPad.Main (System.String[] args) [0x00000]
+
+Expected Results:
+
+no error.
+
+Additional Information:
+
+There is a small design problem that Undo class only expects single line
+deletion.
More information about the mono-bugs
mailing list