[英]How to programmatically detect an application has crashed in Windows?
If they have internal crash handling, it's not possible to detect. 如果他们具有内部崩溃处理,将无法检测到。 The application will handle the error and exit normally.
该应用程序将处理该错误并正常退出。 You can't even detect this if you would attach yourself as a debugger.
如果您将自己附加为调试器,您甚至都无法检测到。
The reason is exception dispatching (MSDN) : 原因是异常调度(MSDN) :
except
block of a Python application, a catch
block in C# or C++ or even a general "unhandled exception handler". except
块,C#或C ++中的catch
块,甚至是常规的“未处理的异常处理程序”。 You're looking to become informed as part of step 3, however, the application has already stopped the process in step 2. 您希望作为第3步的一部分得到通知,但是,该应用程序已在第2步中停止了该过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.