Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM Interop

Status
Not open for further replies.

B00gyeMan

Programmer
Jan 14, 2004
259
RO
I have a in-process COM server which was not writen by me (no sources available) and which I use from a windows service written in C#. But sometimes, in some certain conditions (which I cannot prevent occuring) the COM object crashes and so the windows service (exception handling is all right, but I get no exception). Also, I get no error in any of the event logs.

My question is: does anyone know how can I detect the crash or at least how can I stop my windows service from going down with the COM object?
 
You can run it in it's own AppDomain, but then the .net runtime is making remoting calls on your behalf (i.e. slooow)

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
You could set up a class that makes all your interop calls for you. If it catches an exception then you could try restarting the service.

<insert stupid signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top