forderud / ComSamples

Examples of language-neutral COM interfaces for IPC and language interop.
MIT License
1 stars 2 forks source link

Server doesn't detect C++ client disconnect #7

Closed forderud closed 1 year ago

forderud commented 1 year ago

Error when MyClientCs disconnects: Disconnecting client after call failure (err: 800706BA)

For some reason, then same error isn't triggered when MyClientCpp disconnects. Need to figure out why.

MyClientCpp server error

System.InvalidCastException: 'Unable to cast COM object of type 'System.__ComObject' to interface type 'MyInterfaces.IMyClient'.
This operation failed because the QueryInterface call on the COM component for the interface with IID '{BE3FF6C1-94F5-4974-913C-237C9AB29679}' failed due to the following error:
The RPC server is unavailable. (0x800706BA).'
forderud commented 1 year ago

Fixed in 1d08bec11a1a99af44b74682e01f0da8a1b33e44