Message182474
| Author |
ezio.melotti |
| Recipients |
brian.curtin, catalin.iacob, ezio.melotti, loewis, sable, skrah, vstinner |
| Date |
2013年02月20日.06:24:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1361341480.6.0.265819723263.issue11732@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is a proof of concept patch that defines a context manager that disables the crash popups using SetErrorMode [0]. I tested it only on Windows 7 (and Linux, where it's a no-op). As an example, the patch fixes the crash popup caused by test_capi.
[0]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms680621%28v=vs.85%29.aspx
FWIW I attempted to use WerRegisterRuntimeExceptionModule too, and I was able to access it from ctypes.windll.kernel32.WerRegisterRuntimeExceptionModule on Win7, but then it wanted me to define a DLL with 3 functions, so I tried to find a simpler solution. |
|