[Mono-bugs] [Bug 62235][Cri] New - split function bug
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 1 Aug 2004 17:50:16 -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=62235
--- shadow/62235 2004-08-01 17:50:16.000000000 -0400
+++ shadow/62235.tmp.16158 2004-08-01 17:50:16.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 62235
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: VB Runtime
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: smeegoan@yahoo.com.br
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: split function bug
+
+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 2 3 4", " ").Length)
+ End Sub
+
+End Module
+
+2. run with .net:
+C:\Documents and Settings\Pedro\Os meus documentos\Visual Studio
+Projects\NET\Co
+nsoleApplication1\bin>bug.exe
+4
+
+3. run with mono:
+C:\Documents and Settings\Pedro\Os meus documentos\Visual Studio
+Projects\NET\Co
+nsoleApplication1\bin>mono bug.exe
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+rang
+e.
+Parameter name: count
+in <0x0004b> System.String:Split (char[],int)
+in <0x000f2> Microsoft.VisualBasic.Strings:Split
+(string,string,int,Microsoft.Vi
+sualBasic.CompareMethod)
+in <0x0001e> ConsoleApplication1.Module1:Main ()
+
+
+Actual Results:
+crashes the application
+
+Expected Results:
+should return the length of the array
+
+How often does this happen?
+always
+
+Additional Information: