How to close the prompt dialog box when Windows program exits abnormally
1. When an exception occurs in the Windows program, Windows will pop up an exception prompt dialog box, causing the program not to exit completely and affecting the monitoring program to restart the program automatically. You can use the
ServerWerOptin / disable
Command disables the display of prompts.
However, to disable the window completely, you need to change the following registry key to 1.
HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ WindowsErrorReporting\ DontShowUI
two。 When the program hangs and fails to exit normally, it is very difficult to obtain whether the program is currently in a suspended state through the system function, or it is more reliable to monitor regularly through pipes, files, networks and other communications between the two processes.