COM DCOM Question:
Do COM keep track of all the object references (Accounting)?
Answer:
Object references in COM is accounted using two methods of
IUnknown Interface (AddRef and Release).
AddRef: Increments a reference count whereas "Release"
decrements the count.
When the count of the reference is zero the DLL is unloaded
from memory.
IUnknown Interface (AddRef and Release).
AddRef: Increments a reference count whereas "Release"
decrements the count.
When the count of the reference is zero the DLL is unloaded
from memory.
Previous Question | Next Question |
How to Use structs in COM interfaces when Automation compatibility is not an issue? | how to call a dll as a COM dll? |