[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 11:02:39 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 10:35:21.000000000 -0500
+++ shadow/80805.tmp.8950	2007-02-12 11:02:38.000000000 -0500
@@ -247,6 +247,13 @@
 before
                         if (startIndex > this.length - length)
                                 throw new ArgumentOutOfRangeException
 ("startIndex + length > this.length");
 
 help to solve this?
+
+------- Additional Comments From lupus at ximian.com  2007-02-12 11:02 -------
+Your change won't help, since length is 1 and the string is the empty
+string. The exception is correct. We should try to get where from the
+empty string comes from: likely your sw depends on getting a non-empty
+string there (if this is windows code, for example, that asked a drive
+name, like C:, D:, and there are no drive names in unix filesystems).


More information about the mono-bugs mailing list