[Mono-bugs] [Bug 80805][Wis] Changed - System.ArgumentOutOfRangeException: Argument is out of range.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 10:17:12 EST 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 lupus at ximian.com.

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

--- shadow/80805	2007-02-12 09:56:30.000000000 -0500
+++ shadow/80805.tmp.8401	2007-02-12 10:17:12.000000000 -0500
@@ -206,6 +206,13 @@
 
                          if (startIndex > this.length - length)
                                 throw new ArgumentOutOfRangeException
 ("startIndex + length > this.length");
 
 in the file mcs/class/corlib/System/String.cs with please?
+
+------- Additional Comments From lupus at ximian.com  2007-02-12 10:17 -------
+Add before that line:
+Console.WriteLine ("Substr: '{0}', start: {1}, len: {2}", this, 
+startIndex, length);
+Hopefully the WriteLine will not strigger a Substring call or you'll
+get a stack overflow.


More information about the mono-bugs mailing list