Getting control of program exits

  • Thread starter Thread starter Dick Berthold
  • Start date Start date
D

Dick Berthold

Is there a way to get control when a program exits? I am working with a
large multi-threaded .NET Basic application which is "randomly" shutting
down. Ideally, I would like to write some sort of log file when it exits
giving as much as possible information about the reason for the exit.
 
Dick Berthold said:
Is there a way to get control when a program exits? I am working with a
large multi-threaded .NET Basic application which is "randomly" shutting
down. Ideally, I would like to write some sort of log file when it exits
giving as much as possible information about the reason for the exit.

You could try adding a handler to the AppDomain.Unload event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top