|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mskohut in .NET, C# Programming Language, Debugging Software for Development
In our .NET application I want to implement a switch in my Dispose methods. If the switch is on, I want to check if there are any objects on the managed heap that reference the object to be disposed (which of course might be slow, therefore the switch).
I thougt about using SOS.dll which has a "GCRoot" function which is able to find such references. I want to import this function in my code using [DllImport("sos.dll")], but I do not know the signature of the function. Does anybody know how to speak with this dll from .NET source code?
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625