Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6820635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:26:54+00:00 2026-05-26T21:26:54+00:00

I have an application that I am writting that communicates with a third-party program

  • 0

I have an application that I am writting that communicates with a third-party program through a COM connection. I was tasked to strengthen the resilency of our application, in order to do that I wait until the third-party application is ready. I do this by waiting until the return value on a method that returns true only when the third-party application has been fully loaded.

In an effort to avoid the condition where the application crashes during this procedure, and my application just sits there waiting throwing COM errors( caught of course ) I was wondering if the Exited event on the Process itself, is guaranteed to always happen?

I am more then willing to provide additional details when its possible. I am also for the time being limited to .NET Framework 2.0 with this current build.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:26:54+00:00Added an answer on May 26, 2026 at 9:26 pm

    It depends on the sort of crash – some crashes leave the “process” in memory (for example just stuck in some never-ending loop OR that COM object opened some modal error dialog and waits for user)… these cases are not covered by any method mentioned in your description…

    In my experience to be really resilient you need a combination:

    • hook the Exited event (if you started the application via Process) OR find the process ID and monitor that
    • catch any exceptions from that COM object
    • implement a timeout + abort logic for calls to that COM object/application
    • “monitor” the COM object/app
      I usually start a separate thread before calling such a COM object… that thread monitors the COM object/application for example if it open any window it is not supposed or memory consumption goes through the roof when it is not supposed to etc. – the things monitored and the reaction to each of them is rather specific to that COM object/application…
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that I was writing that communicates with a third-party application
I have a QT C++ application that runs the Octave program using QProcess. I
I am writing an application that communicates using sockets. I have a server running
I have a web application that I'm writing (C#, MSSQL) and I need to
I'm currently writing a web application that have about 6-12 pages. On each one
I have a C++ Windows application that can be extended by writing C++ plugins,
I'm writing a web application that will have plugins. The plugins will be .DLL
I am writing a PHP application that will have the ability to edit settings
I'm writing a drawing application that includes shapes that can have children. When I
I have just been involved in writing an application that does not use Doctype's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.