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

Gonzalo Paniagua Javier gonzalo at ximian.com
Sun Jun 13 15:05:34 EDT 2004


El dom, 13-06-2004 a las 15:02, Davy Brion escribió:
> doh
> 
> 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?
> > 

I tried your code with current CVS and I see no memory leakage. It
remains the same (i stopped it after 16k).

-Gonzalo





More information about the Mono-devel-list mailing list