如何禁用 Windows 应用程序崩溃报告?

发布于 2024-09-17 16:44:06 字数 252 浏览 1 评论 0原文

我试图在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滥情稳全场 2024-09-24 16:44:06

通过调用 TerminateProcess 的 SetUnhandledExceptionFilter 设置异常过滤器。

Set an exception filter via SetUnhandledExceptionFilter that calls TerminateProcess.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文