[Mono-bugs] [Bug 81284][Nor] New - TextBox: ArgumentOutOfRangeException when removing text

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 1 14:06:49 EDT 2007


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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=81284

--- shadow/81284	2007-04-01 14:06:49.000000000 -0400
+++ shadow/81284.tmp.19881	2007-04-01 14:06:49.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 81284
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextBox: ArgumentOutOfRangeException when removing text
+
+When removing text containing empty lines from a TextBox the following 
+exception is reported:
+
+System.ArgumentOutOfRangeException: Argument is out of range.
+  at System.Text.StringBuilder.ToString (Int32 startIndex, Int32 length) 
+[0x00000] 
+  at System.Windows.Forms.UndoManager.Duplicate 
+(System.Windows.Forms.Line start_line, Int32 start_pos, 
+System.Windows.Forms.Line end_line, Int32 end_pos) [0x00000] 
+  at System.Windows.Forms.UndoManager.RecordDeleteString 
+(System.Windows.Forms.Line start_line, Int32 start_pos, 
+System.Windows.Forms.Line end_line, Int32 end_pos) [0x00000] 
+  at System.Windows.Forms.Document.ReplaceSelection (System.String s, 
+Boolean select_new) [0x00000] 
+  at System.Windows.Forms.TextBoxBase.ProcessKey (Keys keyData) [0x00000] 
+  at System.Windows.Forms.TextBoxBase.WndProc 
+(System.Windows.Forms.Message& m) [0x00000] 
+  at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& 
+m) [0x00000] 
+  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage 
+(System.Windows.Forms.Message& m) [0x00000] 
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc 
+(System.Windows.Forms.Message& m) [0x00000] 
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, 
+IntPtr wParam, IntPtr lParam) [0x00000] 
+
+To reproduce, compile and run the attached code snippet.


More information about the mono-bugs mailing list