进程延迟触发的退出事件



我有这个代码:

Process internetExplorerProcess = Process.Start("iexplore", "-noframemerging about:blank");
internetExplorerProcess.EnableRaisingEvents = true;
internetExplorerProcess.Exited += OnInternetExplorerProcessExited;

在这种情况下,将立即执行退出事件。

如果我们更改第一行以打开网络而不是空白页面:

 Process internetExplorerProcess = Process.Start("iexplore", "-noframemerging www.stackoverflow.com");

在某些计算机中,退出事件不会立即运行,最多可能需要 20 秒。

额外信息:

如果在延迟期间我们打开任务管理器并强制终止 iExplore 事件,则似乎某些外部进程阻止了 iExplore 的关闭。

我们已经使用反恶意软件工具检查了机器,一切正常。

我按照安东·科米山指出的帖子中指出的步骤进行操作,但没有解决问题,但他帮助我找到了问题,谢谢。

最后,在重新配置 iexplore,默认删除插件和配置后,问题得到了解决。

最新更新