抑制消息:“python.exe 已停止工作"; [英] Suppress message: "python.exe has stopped working"
问题描述
我在 Windows for Server(2 个 Xeon 2.13 Ghz 处理器)上运行 Python 2.7 和 ArcGIS Desktop 10.1.
I'm running Python 2.7 with ArcGIS Desktop 10.1 on Windows for Server (2 Xeon 2.13 Ghz processors).
当python崩溃时,是否可以从Windows中抑制或自动关闭显示python.exe已停止工作"的对话框?我有一个持续运行的多处理脚本,有时会因未知原因而崩溃(正在处理).当我点击关闭崩溃报告窗口时,脚本重新启动,一切正常.我希望这会自动发生,直到我能够找到导致崩溃的原因.
Is it possible to suppress or automatically close the dialogue box from Windows that says "python.exe has stopped working" when python crashes? I have a continuously running, multiprocessing script that sometimes crashes for unknown reasons (working on that). When I click to close the crash report window, the script restarts and everything is okay. I want this to happen automatically until I can track down what is causing the crashes.
非常感谢!道格
推荐答案
禁用 Windows 调试器对话框的过程,请参见此处:
Procedure for disabling the Windows Debugger dialogue box found here:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb204634(v=vs.85).aspx
这可以防止出现需要用户在 python 崩溃时单击 [Debug] 或 [Cancel] 的调试对话框.
This prevents the debug dialogue box that requires the user to click [Debug] or [Cancel] if python crashes.
但是,现在有另一个 Windows 对话框显示python.exe 已停止工作.请关闭程序",并使用 [关闭程序] 按钮.嘘!
However, there is now another Windows dialogue box that says "python.exe has stopped working. Please close the program" with a button [Close Program]. Sheesh!
这篇关于抑制消息:“python.exe 已停止工作";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!