This article has been archived. It is offered "as is" and will no longer be updated.
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=00000000eip=791f3fef esp=0085f23c ebp=0085f28c iopl=0 nv up ei pl nz na pe nccs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00010202mscorwks!ObjHeader::PassiveGetSyncBlock:791f3fef 8b01 mov eax,[ecx] ds:0023:fffffffc=????????
This problem occurs if the garbage collector collects the handle to the ServicedComponent derived class object while the CCW still references the object.
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: