PRB: ComLib.release() Only Decrements Reference Count by One (326213)



The information in this article applies to:

  • Microsoft Visual J# .NET (2002)
  • Microsoft Visual J# .NET (2003)

This article was previously published under Q326213

SYMPTOMS

After you call COMLib.release() on a COM object, the object may still be available.

CAUSE

COMLib.release() only decrements the reference count of the COM object by one.

STATUS

This behavior is by design.

MORE INFORMATION

This behavior is different from when you use the Java Virtual Machine. When you call ComLib.release() in that scenario, all references are released.

Modification Type:MajorLast Reviewed:8/7/2003
Keywords:kbCOMServices kbprb KB326213