[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.


--- 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 Details: 
+Status: NEW   
+Priority: Critical
+Component: VB Runtime
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: smeegoan@yahoo.com.br               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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
+3. run with mono:
+C:\Documents and Settings\Pedro\Os meus documentos\Visual Studio
+nsoleApplication1\bin>mono bug.exe
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+Parameter name: count
+in <0x0004b> System.String:Split (char[],int)
+in <0x000f2> Microsoft.VisualBasic.Strings:Split
+in <0x0001e> ConsoleApplication1.Module1:Main ()
+Actual Results:
+crashes the application
+Expected Results:
+should return the length of the array
+How often does this happen? 
+Additional Information: