Entilb June 2005 - ConfigurationChangeFileWatcher leak?

Topics: Enterprise Library Core
Apr 15, 2008 at 6:59 PM
I am using entlib June 2005 in .NET 2.0 project (converted to VS2005 with the instructions). I am finding that every time I make a call to ConfigurationManager.GetConfiguration(...), a ConfigurationChangeFileWatcher instance is added to the heap and never disposed. If I put ConfigurationManager.GetConfiguration(...) into a tight loop 1000 times, an outofmemory exception is thrown.

Can someone please tell me how to dispose of these resources correctly?