zcz527 / autofac

Automatically exported from code.google.com/p/autofac
Other
0 stars 0 forks source link

Memory leaks for Autofac 3.0.0 #405

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have memory leaks for code

...
var builder = new ContainerBuilder();
builder.RegisterType<Manager>().As<IManager>().InstancePerLifetimeScope();
var container = builder.Build();
...
while (...)
{
    using(var lifetimeScope = container.BeginLifetimeScope())
    {
        var manager = lifetimeScope.Resolve<IManager>();
        manager.DoWork();
    }
}

Garbage collector dont kill manager instances.
This code has no leaks for Autofac 2.6.3.862

Original issue reported on code.google.com by iliya.tr...@gmail.com on 8 Feb 2013 at 6:22

GoogleCodeExporter commented 8 years ago
There was a 3.0.1 release issued this morning for this. Please upgrade and try 
again. If it is still a problem, please come back and re-open the issue.

Original comment by travis.illig on 9 Feb 2013 at 1:14

GoogleCodeExporter commented 8 years ago
I've updated my Autofac 3.0.1 to 3.0.2 and leaks with ExternalOwned were 
eliminated!

Original comment by m.shi...@gmail.com on 4 May 2013 at 9:35

GoogleCodeExporter commented 8 years ago
Thanks for letting us know.

Original comment by alex.meyergleaves on 4 May 2013 at 1:22