A multithreaded VB.NET Windows Service uses a FilesystemWatcher in each
thread.
The FilesystemWatcher event handler calls a VB6 COM+
component "MEDAMBusiness.CMilDispatch".
After reboot of the server PC a MessageBox with the Error "COM Surrogate
encountered a problem..." pops up.
There is no entry for this error in the event log.
In the event log there is a related error:
The system has called a custom component and that component has failed and
generated an exception. This indicates a problem with the custom
component. Notify the developer of this component that a failure has
occurred and provide them with the information below.
Component Prog ID:
Server Application ID: {828CF9EB-6234-41F5-BB2E-64F9E6AB4987}
Server Application Instance ID:
{90AF7461-8313-49AB-8971-BD9C92634B40}
Server Application Name: Medam
The serious nature of this error has caused the process to terminate.
Exception: C0000005
Address: 0x00DC8301
Call Stack:
+ 0xdc8301
MSDART!long const * const `CLKRHashTableStats::BucketSizes
(void)'::`2'::s_aBucketSizes + 0xb4
msdasql! + 0x155d
msdasql!DllGetClassObject + 0xff6
msdasql!DllGetClassObject + 0x1121
msdasql!DllGetClassObject + 0x14de
msdasql!DllGetClassObject + 0x214
msdasql!DllGetClassObject + 0x342
msado15! + 0x2a37
msado15!DllGetClassObject + 0x4c23
msado15! + 0x2a1d
MedamTracerMTS!DllCanUnloadNow + 0x2005
RPCRT4!NdrServerInitialize + 0x462
RPCRT4!NdrStubCall2 + 0x217
RPCRT4!NdrCStdStubBuffer2_Release + 0xd4
OLEAUT32!VariantTimeToDosDateTime + 0x1827
ole32!WdtpInterfacePointer_UserMarshal + 0x13fa
ole32!CoQueryAuthenticationServices + 0x473a
RPCRT4!NdrProxySendReceive + 0x40
RPCRT4!NdrProxyInitialize + 0xb0
RPCRT4!I_RpcProxyNewConnection + 0x128c9
RPCRT4!NdrUserMarshalFree + 0xa1
MedamBusiness!DllCanUnloadNow + 0x8897d
MedamBusiness!DllCanUnloadNow + 0x7d0f7
RPCRT4!NdrServerInitialize + 0x462
RPCRT4!NdrStubCall2 + 0x217
RPCRT4!NdrCStdStubBuffer2_Release + 0xd4
OLEAUT32!VariantTimeToDosDateTime + 0x1827
ole32!WdtpInterfacePointer_UserMarshal + 0x13fa
ole32!CoQueryAuthenticationServices + 0x473a
RPCRT4!NdrProxySendReceive + 0x40
RPCRT4!NdrProxyInitialize + 0xb0
RPCRT4!I_RpcProxyNewConnection + 0x128c9
RPCRT4!NdrUserMarshalFree + 0xa1
MedamBusiness!DllCanUnloadNow + 0x69704
MedamBusiness!DllCanUnloadNow + 0x687a1
RPCRT4!NdrServerInitialize + 0x462
RPCRT4!NdrStubCall2 + 0x217
RPCRT4!NdrCStdStubBuffer2_Release + 0xd4
OLEAUT32!VariantTimeToDosDateTime + 0x1827
ole32!WdtpInterfacePointer_UserMarshal + 0x13fa
ole32!WdtpInterfacePointer_UserMarshal + 0x13ad
ole32!ProgIDFromCLSID + 0x1fcf
ole32!ProgIDFromCLSID + 0x1dcd
ole32!DcomChannelSetHResult + 0x85d
ole32!WdtpInterfacePointer_UserMarshal + 0x12db
ole32!WdtpInterfacePointer_UserMarshal + 0x116c
ole32!WdtpInterfacePointer_UserMarshal + 0x15ec
ole32!DcomChannelSetHResult + 0x7d6
ole32!DcomChannelSetHResult + 0x5fa
USER32!EnableMenuItem + 0x4cd4
USER32!EnableMenuItem + 0x4da1
USER32!GetWindowLongW + 0x183
USER32!DispatchMessageW + 0xf
COMSVCS!CoCreateActivity + 0x572b
COMSVCS!CoCreateActivity + 0x562f
COMSVCS!CoCreateActivity + 0x5fc8
COMSVCS!CoCreateActivity + 0x6414
msvcrt!_endthreadex + 0xa3
kernel32!GetModuleFileNameA + 0xeb
--
Peter Meinl
ISTEC GmbH
www.petermeinl.de
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com