Message182474
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. |
|
Date |
User |
Action |
Args |
2013-02-20 06:24:40 | ezio.melotti | set | recipients:
+ ezio.melotti, loewis, vstinner, sable, brian.curtin, skrah, catalin.iacob |
2013-02-20 06:24:40 | ezio.melotti | set | messageid: <1361341480.6.0.265819723263.issue11732@psf.upfronthosting.co.za> |
2013-02-20 06:24:40 | ezio.melotti | link | issue11732 messages |
2013-02-20 06:24:40 | ezio.melotti | create | |
|