“应用程序错误”对话框被禁用? [英] Can the "Application Error" dialog box be disabled?

查看:216
本文介绍了“应用程序错误”对话框被禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Hudson作为连续集成服务器来测试C / C ++代码。不幸的是,我有一个错误,导致内存损坏,所以在一些Windows机器上,我有时会得到一个应用程序错误对话框,解释一个指令引用的内存无法读取。此对话框弹出,基本上挂起测试运行,因为需要手动干预。



有没有办法阻止此对话框出现,以便测试运行简单地失败,并在Hudson中报告?



是否可以自动生成minidump而不是显示对话框?

解决方案


  1. 正如Gently先生所说,使用禁用错误报告。另请参见本PC世界文章

  2. 如果您的构建机器上碰巧有MS Visual Studio,它将捕获应用程序错误并弹出一个对话框。要禁用这些对话框(以及Visual Studio的即时调试功能),请运行命令 drwtsn32.exe -i 将Dr.Watson设置为默认系统调试器沃森博士将产生一个核心转储,并且静默地退出。 (请参阅此Microsoft知识库文章: http://support.microsoft.com/kb/q121434/。)


I am using Hudson as a continuous integration server to test C/C++ code. Unfortunatly, I have a bug somewhere that causes memory corruption, so on some Windows machines I will sometimes get a "Application Error" dialog box explaining that an instruction referenced memory that could not be read. This dialog box pops up and basically hangs the test run, as it requires manual intervention.

Is there a way to prevent this dialog box from appearing, so that the test run simply fails and is reported as such in Hudson?

Is it possible to automatically generate a minidump instead of showing the dialog?

解决方案

  1. Use "Disable error reporting", as Mr. Gently suggests. See also this PC World article.
  2. If you happen to have MS Visual Studio on your build machine, it will catch Application Errors and pop up a dialog box. To disable these dialogs (and also the Just-In-Time Debugging feature of Visual Studio), run the command drwtsn32.exe -i to set Dr. Watson as the default system debugger. Dr. Watson will generate a core dump and silently exit. (See this Microsoft Knowledge Base article: http://support.microsoft.com/kb/q121434/.)

这篇关于“应用程序错误”对话框被禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆