[Mono-bugs] [Bug 67197][Blo] New - bug #2 in visualbasic.strings.split

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 30 Sep 2004 07:39:34 -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=67197

--- shadow/67197	2004-09-30 07:39:34.000000000 -0400
+++ shadow/67197.tmp.29714	2004-09-30 07:39:34.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 67197
+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 #2 in visualbasic.strings.split 
+
+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(Split("1 ", " "))
+    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"
+System.String[]
+
+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: count
+in <0x0004a> System.String:Split (char[],int)
+in <0x000fa> Microsoft.VisualBasic.Strings:Split
+(string,string,int,Microsoft.Vi
+sualBasic.CompareMethod)
+in <0x0001e> ConsoleApplication1.Module1:Main ()
+
+Actual Results:
+application crashes
+
+Expected Results:
+should return the array
+
+How often does this happen? 
+always
+
+Additional Information: