[Mono-list] Memory leak

Jon Harrop jon at ffconsultancy.com
Sat Feb 7 09:43:47 EST 2009


On Saturday 07 February 2009 14:40:56 Jon Harrop wrote:
> On Saturday 07 February 2009 14:34:03 you wrote:
> > You tried compiling in VS with both optimisations off and optimisations
> > on and then running the resulting exe under MS.NET?
>
> Yes.
>
> > The former leaks and the latter doesn't.
>
> Both leak under Mono and neither leak under .NET for me.
>
> > I can attach both assemblies if you wish.
>
> Please do.

I found the discrepancy: I can get my code to leak on .NET by turning 
optimizations off and running it in the debugger. If I run the unoptimized 
without debugging then it does not leak. Nor does the optimized version.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


More information about the Mono-list mailing list