This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2013-02-20 06:24:40ezio.melottisetrecipients: + ezio.melotti, loewis, vstinner, sable, brian.curtin, skrah, catalin.iacob
2013-02-20 06:24:40ezio.melottisetmessageid: <1361341480.6.0.265819723263.issue11732@psf.upfronthosting.co.za>
2013-02-20 06:24:40ezio.melottilinkissue11732 messages
2013-02-20 06:24:40ezio.melotticreate