[Mono-bugs] [Bug 78109][Nor] New - Inserting text into existing (selected) text in a TextBox sometimes throws an ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Apr 14 08:52:26 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 xenomorph2 at onlinehome.de.

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

--- shadow/78109	2006-04-14 08:52:26.000000000 -0400
+++ shadow/78109.tmp.15067	2006-04-14 08:52:26.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 78109
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: xenomorph2 at onlinehome.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Inserting text into existing (selected) text in a TextBox sometimes throws an ArgumentOutOfRangeException
+
+This bug is hard to reproduce.
+
+Sometimes, if I insert text into (selected) text in a TextBox I get an 
+System.ArgumentOutOfRangeException.
+As I wrote before, it is hard to reproduce. Best would be to use wordpad,
+write some text, select it, set char size to 72 and start inserting text
+(really fast).
+
+This is the exception:
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+range.
+Parameter name: index
+in [0x00066] (at
+/build/buildd/mono-1.1.13.6/mcs/class/corlib/System.Text/StringBuilder.cs:568)
+System.Text.StringBuilder:Insert (Int32 index, Char value)
+in [0x0002a] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs:2112)
+System.Windows.Forms.Document:InsertCharAtCaret (Char ch, Boolean move_caret)
+in [0x0015c] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs:1158)
+System.Windows.Forms.TextBoxBase:WndProc (System.Windows.Forms.Message m)
+in [0x00002] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs:1087)
+System.Windows.Forms.RichTextBox:WndProc (System.Windows.Forms.Message m)
+in [0x00007] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:160)
+System.Windows.Forms.Control+ControlNativeWindow:WndProc
+(System.Windows.Forms.Message m)
+in [0x00056] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146)
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam)
+in [0x0001c] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2562)
+System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00006] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:408)
+System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg)
+in [0x00240] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395)
+System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in [0x00007] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:292)
+System.Windows.Forms.Application:Run (System.Windows.Forms.Form mainForm)
+in <0x00167> WordPad.WordPad:Main (System.String[] args)


More information about the mono-bugs mailing list