PRB: IComAppEvents::OnAppShutDown Leaves No Time to Clean Up Resources (272288)



The information in this article applies to:

  • Microsoft COM+ 1.0
  • Microsoft COM+ 1.5
  • Microsoft Transaction Server 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.

Modification Type:MajorLast Reviewed:2/20/2002
Keywords:kbDSupport kbprb kbSysAdmin KB272288