Wednesday, July 2, 2008
What is Reference counting in COM?
Reference counting is a memory management technique used to count how many times an object has a pointer referring to it. The first time is it created; the reference count is set to one. When the last reference to the object is nulled, the reference count is set to zero and the object is deleted. Care must be exercised to prevent a context switch from changing the reference count at the time of deletion.
Labels:
ASP,
C#,
Design Patern,
General,
interview questions,
Visual Studio