I tried his code and did not see a memory increase. The memory was reclaimed in each iteration.
I then modified the class to implement the recommended IDisposable pattern and the difference was that GC.GetTotalMemory showed a lesser value with each iteration. On Sep 28, 8:35 am, May0rDav3 <[email protected]> wrote: > Would there be a performance increase if the class implements the > idisposable interface and calls the dispose method (and then remove it > from the queue for the garbage man so he doesn't have to > stop)?http://msdn.microsoft.com/en-us/library/system.idisposable(v=VS.80).aspx >
