Access Violation in COMSVCS!CSecurityCallCtx When You Access COM+ Objects Inside Class_Terminate (312618)



The information in this article applies to:

  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Professional SP1
  • Microsoft Windows 2000 Professional SP2

This article was previously published under Q312618

SYMPTOMS

When you access other COM+ objects in the Class_Terminate event of one component in a complex Microsoft Visual Basic COM+ application with multiple components, you receive an access violation inside COMSVCS!CSecurityCallCtx when the calling component is stopped.

CAUSE

The behavior occurs because the security context is not available inside the Class_Terminate event. The COM+ component's object context lifetime is controlled by the IObjectControl::Activate and IObjectControl::Deactivate methods.

RESOLUTION

To resolve this issue, obtain Microsoft COM+ Rollup Hotfix 18 or Windows 2000 Service Pack 3.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

313582 INFO: Availability of Windows 2000 Post-Service Pack 2 COM+ Hotfix Rollup Package 18.1

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.

MORE INFORMATION

For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product

For additional information about how to install multiple hotfixes with only one reboot, click the article number below to view the article in the Microsoft Knowledge Base:

296861 Use QChain.exe to Install Multiple Hotfixes with Only One Reboot

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes


Modification Type:MajorLast Reviewed:12/8/2003
Keywords:kbbug kbfix kbSecurity kbWin2000sp3fix KB312618