[Mono-devel-list] memory leak when using RegexOptions.IgnoreCase

Davy Brion ralinx at pandora.be
Sun Jun 13 09:02:23 EDT 2004


forgot to attach the code

On Sun, 2004-06-13 at 14:59, Davy Brion wrote:
> Hi,
> when running the attached code you can notice that the memory usage
> keeps going up.  
> if you replace line 16 with the following:
> colMatches = Regex.Matches(strTest,strPattern);
> then the memory usage is fine.  So the bug is triggered when you use
> RegexOptions.IgnoreCase. In this example, it's not a huge problem, but
> because of this bug, my real application's memory usage goes up to
> 900MB... if i keep it running it just keeps going up. 
> The attached code is merely a small testcase which triggers the bug. 
> Could this be fixed before 1.0 final comes out?
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cs
Type: text/x-csharp
Size: 460 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040613/d75aa9ed/attachment.bin 

More information about the Mono-devel-list mailing list