Since a finalizer being called usually indicates a missing Dispose() call, I would like determine what finalizers are being called.
A:
How about:-
System.Diagnostics.Debug.WriteLine(this.GetType());
AnthonyWJones
2009-01-29 14:44:55
That is good for my classes. I would like that ability for framework classes also.
jyoung
2009-01-29 14:58:17
Tricky, if you could examine what is passing through the freachable queue that might give you a clue but I wouldn't know how to do that. I agree with shahkalpesh, a profiler could highlight where something disposable isn't being disposed.
AnthonyWJones
2009-01-29 18:16:16
+1
A:
I am not sure what could be the right answer. But profilers/perfromance counters can help in this regard.
shahkalpesh
2009-01-29 17:12:27