c# - Unity Container Memory Leaks -


hi i´m working on project uses enterprice libraries´s unity container resolve dependencies exception handling, cache, logging , db access keep getting lot of leaked objects memory.

we using property injection this:

[dependency] public database db {   { return db; }   set { db = value; } } [dependency] public exceptionmanager exceptionmgr {   { return exceptionmanager; }   set { exceptionmanager = value; } } 

some of object leaked:

microsoft.practices.enterpriselibrary.exceptionhandling.configuration.exceptionhandlingsetti microsoft.practices.enterpriselibrary.logging.configuration.loggingsettings
microsoft.practices.enterpriselibrary.exceptionhandling.configuration.exceptionpolicydata
microsoft.practices.enterpriselibrary.exceptionhandling.configuration.replacehandlerdata
microsoft.practices.enterpriselibrary.exceptionhandling.configuration.wraphandlerdata microsoft.practices.enterpriselibrary.common.configuration.genericenumeratorwrapper microsoft.practices.enterpriselibrary.caching.configuration.cachemanagerdata microsoft.practices.enterpriselibrary.caching.configuration.cachemanagersettings
microsoft.practices.enterpriselibrary.caching.configuration.cachestoragedata

any general advice on handling dependencies unity avoid object leaks?

all objects list part of configuration system. how initializing container? calling "addnewextension()?" if so, it's not leak, since objects represent configuration loaded. configuration source (which what's holding on objects) stays around life of app can watch for, , notify you, of changes in application.

what tools running telling they're leaking? , leaks growing, or constant? details narrow down behavior "expected" "whoops actual bug".

also, more enterprise library question unity 1 - unity doesn't leak know of.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -