I have an application that has a terrible memory leak, I have tracked it down to one line of code that creates an instance of ICacheManager... CacheManagerFactory.Create.
Below, if I do not manually call cacheMgr.Dispose() in a destructor, I quickly run up 2gig of memory use in a simple test app. (Dispose is not supposed to be used directly)
What is the problem here?
public class LeakLikeCrazy
public ICacheManager cacheMgr;
var scs = new SystemConfigurationSource();
var cmf = new CacheManagerFactory(scs);
cacheMgr = cmf.Create("XYZ");