Microsoft KB Archive/823951

From BetaArchive Wiki
Knowledge Base


FIX: You receive an "Access violation" error message when you call a ServicedComponent derived class object through a COM Callable Wrapper

Article ID: 823951

Article Last Modified on 10/25/2005



APPLIES TO

  • Microsoft .NET Framework 1.1



SYMPTOMS

When you make a remote call on a Microsoft Component Object Model (COM) callable wrapper (CCW) to a ServicedComponent derived class object and the ServicedComponent derived class object is collected by the garbage collector, you may receive an error message that is similar to the following:

Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax=0085f27c ebx=fffffffc ecx=fffffffc edx=00000001 esi=000a78c8 edi=00000000 eip=791f3fef esp=0085f23c ebp=0085f28c iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00010202 mscorwks!ObjHeader::PassiveGetSyncBlock: 791f3fef 8b01 mov eax,[ecx] ds:0023:fffffffc=????????

CAUSE

This problem occurs if the garbage collector collects the handle to the ServicedComponent derived class object while the CCW still references the object.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft .NET Framework 1.1. For more information, visit the following Microsoft Developer Network (MSDN) Web site:

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft .NET Framework 1.1 Service Pack 1.

MORE INFORMATION

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

824684 Description of the standard terminology that is used to describe Microsoft software updates



Additional query words: GC

Keywords: kbbug kbfix kbqfe kbnetframe110sp1fix kbhotfixserver KB823951