[Mono-bugs] [Bug 22926] New - FactoryCache is set to low I think...
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
2 Apr 2002 07:00:36 -0000
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 manyoso@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=22926
--- shadow/22926 Tue Apr 2 02:00:36 2002
+++ shadow/22926.tmp.8899 Tue Apr 2 02:00:36 2002
@@ -0,0 +1,47 @@
+Bug#: 22926
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: manyoso@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: FactoryCache is set to low I think...
+
+using System;
+using System.Text.RegularExpressions;
+
+class Foo {
+
+ public static void Main (string[] args)
+ {
+ while (true) {
+ Console.WriteLine (IsBlah("test"));
+ }
+ }
+
+ public static bool IsBlah (String str)
+ {
+ return Regex.IsMatch (str, "");
+ }
+}
+
+produces.......
+
+The console print's True repeatedly as expected and then crashes with...
+
+Unhandled exception System.NullReferenceException A null value was found where an object instance was required.
+#0: 0x00030 stfld in System.Text.RegularExpressions.MRUList::Evict ()
+#1: 0x00019 callvirt in System.Text.RegularExpressions.FactoryCache::Add ([0x80c4fb0] [0] [0x81f349c] )
+#2: 0x00091 callvirt in System.Text.RegularExpressions.Regex::.ctor ([0x80c4fb0] [0] )
+#3: 0x00002 newobj in System.Text.RegularExpressions.Regex::IsMatch ([0x80c4df8] [0x80c4fb0] )
+#4: 0x00007 call in .Foo::IsBlah ([0x80c4df8] )
+#5: 0x0000b call in .Foo::Main ([0x80c4e20] )