By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,636 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,636 IT Pros & Developers. It's quick & easy.

How can I tell if a DCOM server I am connected to has been destroyed?

P: n/a
How can I tell if a DCOM server I am connected to has been destroyed?

All,

I have a C# client app which connects to a C++/MFC DCOM server. The DCOM
server implements a sink object aswell as an interface on which the C#
client calls methods.

I need to know in my C# app if this server has disconnected and I'm unsure
of to how to do this. In C++ I could identify this in the destructor of the
sink object but C# does not provide such abilities.

I know we can add a method to the sink which I can detect and react
proactively, however if the DCOM server is killed or similarly shuts down in
an unintended way then I still need to cater for this.

Can anyone suggest a good way of doing this?

PT
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.