finalizer Questions
4
I have a .NET C# / C++ app which uses a call to exit(0) (from <stdlib.h>) in a thread in order to terminate.
The strange part is, under some circumstances, the finalizers of the managed obje...
Cannon asked 3/4, 2009 at 13:3
5
Solved
For some reason FXCop seems to think I should be calling GC.SuppressFinalize in Dispose, regardless of whether I have a finalizer or not.
Am I missing something? Is there a reason to call GC.Supp...
4
Solved
I have a class (say MyClass) that uses (has as a private field) a TcpClient object. MyClass implements IDisposable calling TcpClient.Close in the Dispose method.
My question is should MyClass als...
Selmore asked 12/2, 2009 at 15:27
4
Solved
I have a .NET (C#) multi-threaded application and I want to know if a certain method runs inside the Finalizer thread.
I've tried using Thread.CurrentThread.Name but it doesn't work (returns null...
Fixture asked 25/11, 2008 at 18:46
1
Solved
Based on all my reading there should be one GC thread to invoke all finalizers. Now, the question is what is the scope of this "one" thread - per process or per application domain, as the whole int...
Despatch asked 27/10, 2008 at 22:4
8
Solved
Looking for an answer for C# and C++. (in C#, replace 'destructor' with 'finalizer')
Frisian asked 9/10, 2008 at 19:1
© 2022 - 2024 — McMap. All rights reserved.