如何禁用 Windows 应用程序崩溃报告?
我试图在 Windows 上的 php 函数 exec() 中调用外部程序(在我的例子中为 IECapt.exe)。
大多数时候它工作得很好,但是当IECapt.exe崩溃时,Windows会弹出一个崩溃提示窗口,
而php脚本会挂在那里等待这个提示窗口关闭,那么如何禁用这样弹出的崩溃窗口呢?
因为我的 php 脚本需要作为守护进程运行,并且在发生这种情况时不会暂停。
如何让它在崩溃时退出?
感谢您的建议。
I am trying to invoke external program (in my case IECapt.exe) in php function exec() on windows.
It works well most of the time, but when IECapt.exe crash, windows pop-up a crash prompt window,
and php script hangs there wait this prompt window closed, so how to disable such pop-up crash window?
because my php script need run as a daemon, and not expected paused when this happens.
how to make it just quit when crash?
thanks for your suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过调用 TerminateProcess 的 SetUnhandledExceptionFilter 设置异常过滤器。
Set an exception filter via SetUnhandledExceptionFilter that calls TerminateProcess.