[Mono-bugs] [Bug 67158][Wis] New - bug in visualbasic.strings.split
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Sep 2004 20:08:51 -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=67158
--- shadow/67158 2004-09-29 20:08:51.000000000 -0400
+++ shadow/67158.tmp.21996 2004-09-29 20:08:51.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 67158
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+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.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("", " "))
+ End Sub
+
+End Module
+
+2. run with .net:
+
+C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Projects\NET\ConsoleA
+pplication1\bin>ConsoleApplication1.exe
+System.String[]
+
+3. run with mono:
+
+C:\Documents and Settings\Pedro\My Documents\Visual Studio
+Projects\NET\ConsoleA
+pplication1\bin>mono 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 detect that the searchstring is not present
+
+How often does this happen?
+always
+
+Additional Information: