http://bugzilla.novell.com/show_bug.cgi?id=591783
http://bugzilla.novell.com/show_bug.cgi?id=591783#c0 Summary: System.ArgumentOutOfRangeException when editing in RichTextBox Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: x86 OS/Version: Windows XP Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: mono-bugs@lists.ximian.com ReportedBy: andreas.flu...@t-online.de QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Sometimes this Exception occurs when editing in a RichTextBox (with colored text): System.ArgumentOutOfRangeException: startIndex + length > this.length Parameter name: length at System.String.Substring (Int32 startIndex, Int32 length) [0x00085] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\corlib\System\String.cs:367 at System.Windows.Forms.LineTag.Draw (System.Drawing.Graphics dc, Color color, Single xoff, Single y, Int32 drawStart, Int32 drawEnd, System.String text, System.Drawing.Rectangle& measuredText, Boolean measureText) [0x00094] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\LineTag.cs:348 at System.Windows.Forms.Document.Draw (System.Drawing.Graphics g, Rectangle clip) [0x0057d] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextControl.cs:1847 at System.Windows.Forms.TextBoxBase.Draw (System.Drawing.Graphics g, Rectangle clippingArea) [0x0000d] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:1832 at System.Windows.Forms.TextBoxBase.OnPaintInternal (System.Windows.Forms.PaintEventArgs pevent) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:1819 at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00078] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:5556 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016b] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:5316 at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m)[0x0020c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\TextBoxBase.cs:1627 at System.Windows.Forms.RichTextBox.WndProc (System.Windows.Forms.Message& m)[0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\RichTextBox.cs:1258 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:234 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:215 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00085] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.3\mcs\class\Managed.Windows.Forms\System.Windows.Forms\NativeWindow.cs:242 Reproducible: Sometimes Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs