D
D
Dmitry Korolev2018-10-15 23:35:23
C++ / C#
Dmitry Korolev, 2018-10-15 23:35:23

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

1 answer(s)
A
Anvar Shakhmaev, 2018-10-15
@adressmoeistranici

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 question

Ask a Question

731 491 924 answers to any question