[Mono-bugs] [Bug 67287][Blo] New - bug in visualbasic.strings.left

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Oct 2004 03:54:06 -0400 (EDT)


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 smeegoan@yahoo.com.br.

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

--- shadow/67287	2004-10-01 03:54:06.000000000 -0400
+++ shadow/67287.tmp.16808	2004-10-01 03:54:06.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 67287
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: VB Runtime
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: smeegoan@yahoo.com.br               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: bug in visualbasic.strings.left
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. compile the following code:
+
+Module Module1
+
+    Sub Main()
+        Console.WriteLine(Left(" ", 2))
+    End Sub
+
+End Module
+
+2. run with .net:
+
+
+C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Projects\NET\ConsoleA
+pplication1\bin>"C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Proj
+ects\NET\ConsoleApplication1\bin\ConsoleApplication1.exe"
+
+
+C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Projects\NET\ConsoleA
+pplication1\bin>
+
+
+3. run with mono:
+
+C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Projects\NET\ConsoleA
+pplication1\bin>mono "C:\Documents and Settings\Pedro\My Documents\Visual
+Studio
+ Projects\NET\ConsoleApplication1\bin\ConsoleApplication1.exe"
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+rang
+e.
+Parameter name: startIndex + length > this.length
+in <0x0009c> System.String:Substring (int,int)
+in <0x0005f> Microsoft.VisualBasic.Strings:Left (string,int)
+in <0x00014> ConsoleApplication1.Module1:Main ()
+
+Actual Results:
+application crashes
+
+Expected Results:
+should return the string
+
+How often does this happen? 
+always
+
+Additional Information: