FIX: Access Violation Calling CoCreateInstance() (265376)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q265376

SYMPTOMS

When you call CoCreateInstance to activate a configured component in the same COM+ application, an access violation exception may occur with the following stack:
CheckTypeInfo(ITypeInfo * 0x00000000, ITypeInfo * * 0x00f2e1c0, ITypeInfo * * 0x00f2e1d0, unsigned short * 0x00f2e1b8, int * 0x00f2e1c4, _GUID * 0x00f2e1a8 {IID_IUnknown}, ITypeInfo * * 0x00f2e234) line 160 + 7 bytes
GetVtbl(ITypeInfo * 0x00000000, const _GUID & {IID_IdasAlertHistory_User}, TYPEINFOVTBL * * 0x00f2e230, ITypeInfo * * 0x00f2e234) line 330 + 33 bytes
Interceptor::InitUsingTypeInfo(const _GUID & {IID_IdasAlertHistory_User}, ITypeInfo * 0x00000000) line 921 + 21 bytes
Interceptor::CreateFromTypeInfo(const _GUID & {IID_IdasAlertHistory_User}, IUnknown * 0x00000000, ITypeInfo * 0x00000000, const _GUID & {IID_IUnknown}, void * * 0x00108fb0) line 884 + 16 bytes
Interceptor::ForTypeInfo(const _GUID & {IID_IdasAlertHistory_User}, IUnknown * 0x00000000, ITypeInfo * 0x00000000, const _GUID & {IID_IUnknown}, void * * 0x00108fb0) line 683 + 25 bytes
Interceptor::InitUsingTypeInfo(const _GUID & {IID_IdasAlertHistory_Operator}, ITypeInfo * 0x000f1064) line 965 + 27 bytes
Interceptor::CreateFromTypeInfo(const _GUID & {IID_IdasAlertHistory_Operator}, IUnknown * 0x000b55a8, ITypeInfo * 0x000f1064, const _GUID & {IID_IUnknown}, void * * 0x00f2e3a8) line 884 + 16 bytes
Interceptor::TryTypeLib(const _GUID & {IID_IdasAlertHistory_Operator}, IUnknown * 0x000b55a8, const _GUID & {IID_IUnknown}, void * * 0x00f2e3a8) line 867 + 25 bytes
Interceptor::ForOle32(const _GUID & {IID_IdasAlertHistory_Operator}, IUnknown * 0x000b55a8, const _GUID & {IID_IUnknown}, void * * 0x00f2e3a8) line 622 + 21 bytes
CoGetInterceptorForOle32(const _GUID & {IID_IdasAlertHistory_Operator}, IUnknown * 0x000b55a8, const _GUID & {IID_IUnknown}, void * * 0x00f2e3a8) line 127
CStdWrapper::CreateLightPS(CStdWrapper * const, const _GUID & {IID_IdasAlertHistory_Operator}, void * 0x00c2d230, long & 0) line 1263

...

CoCreateInstance(const _GUID & {CLSID_DasAlertHistory Class}, IUnknown * 0x00000000, unsigned long 23, const _GUID &<BR/>
				

RESOLUTION

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 Microsoft Windows 2000. This problem was first corrected in Windows 2000 Service Pack 2.

Modification Type:MinorLast Reviewed:9/26/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix KB265376