Microsoft KB Archive/272288

= PRB: IComAppEvents::OnAppShutDown Leaves No Time to Clean Up Resources =

Article ID: 272288

Article Last Modified on 12/5/2007

-

APPLIES TO


 * Microsoft COM+ 1.0
 * Microsoft COM+ 1.5
 * Microsoft Transaction Services 2.0

-



This article was previously published under Q272288



SYMPTOMS
When a Microsoft Transaction Server (MTS) application uses the IMtsPackageEvents::OnPackageShutDown event to clean up resources that are held by components in the package, it should have enough time to do so. However, when you try to do the same thing with the IComAppEvents::OnAppShutDown event in COM+, there is no time to clean up the resources.



CAUSE
This problem occurs because MTS waits for 20 seconds before it stops the process, and COM+ fires the event from the System application once the application has already ended. MTS announces that the package is going away, and COM+ announces that the application is already gone.



RESOLUTION
These events are intended for monitoring purposes and should not be used to clean up held resources.

Keywords: kbsysadmin kbprb KB272288

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.