Answer the question
In order to leave comments, you need to log in
How to understand that the console application was disabled by external forces?
There is an AppDomain.CurrentDomain.ProcessExit event it is called when the application ends itself There is a
Console.CancelKeyPress
event it is called when you press Ctrl+C / Ctrl + Break
Answer the question
In order to leave comments, you need to log in
Terminating a process through the Task Manager does not trigger any events in the program being closed. The operating system releases all process resources from RAM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question