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 7186231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:35:17+00:00 2026-05-28T18:35:17+00:00

I have an exe file. Lets call it X.exe It is a console application

  • 0

I have an exe file. Lets call it X.exe It is a console application that I created using C#.
However, it hangs abruptly and I have to manually start it over again. I do not want to make any changes to the code.
I know we can use ProcDump or Process monitors from windows sysinternals.
Can I use them to monitor my x.exe ang get alerted on email when the process hangs?
If so, what specific command should I send over?
If not, what else should I use to solve this problem?

Edit/Add on: Should I use create a windows service, identify the process using .net’s process.GetProcessByName function and check if its still running?

  • 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-28T18:35:19+00:00Added an answer on May 28, 2026 at 6:35 pm

    You can handle that with, for example :

    AppDomain.UnhandledException event, by subscribing to it and inside the method

    • send a mail
    • log it
    • notify the user about fatal error ocured
    • or any other solution you may need.

    In this way you have one central point where your application will receive the exception not handled by your code and can process them in centralized way.

    Just remember that, for example StackOverflowException can not be handled.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an exe file that I have to call with several parameters, and
In my application, i have one exe file that will do some conversion on
I have a powershell script that runs a console .exe application. The console application
I have an application, let's call it myapp.exe, which is dual-mode console/GUI, built as
I have an EXE file using a DLL file which is using another DLL
I have a compiled .exe file (compiled with gfortran and -g option) that crashes.
i have published my project and exe file has been created.... now i want
I have an existing utility application, let's call it util.exe. It's a command-line tool
I have a C# application program, let's call it App.exe. It references a DLL
Let's say I have a foo.exe file that I want to use it from

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.