Microsoft KB Archive/327443

= BUG: Multithreaded applications can deadlock because of asynchronous cleanup =

Article ID: 327443

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0
 * Microsoft Enterprise Services (included with the .NET Framework) 1.0
 * Microsoft COM+ 1.0

-



This article was previously published under Q327443



SYMPTOMS
Under certain conditions, a class that is derived from the System.EnterpriseServices.ServicedComponent class that runs in a COM+ application may stop responding (deadlock).



CAUSE
This problem is caused by an Activity deadlock. Activities can deadlock on multithreaded applications because of an asynchronous cleanup of component references.



RESOLUTION
To resolve this problem, the client of the COM+ objects should systematically call the Dispose method. This call enables deterministic cleanup of the COM+ objects. You must call the Dispose method when you have finished using ServicedComponent objects.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

