How to terminate a program when it crashes? (which should just fail a unit test instead of getting stuck forever)

后端 未结 3 1599
时光说笑
时光说笑 2020-11-27 03:33

Our unit tests fire off child processes, and sometimes these child processes crash. When this happens, a Windows Error Reporting dialog pops up, and the process stays alive

3条回答
  •  有刺的猬
    2020-11-27 03:51

    Try setting

    HKCU\Software\Microsoft\Windows\Windows Error Reporting\DontShowUI

    to 1. (You can also set the same key in HKLM, but you need admin privs to do that.)

    This should prevent WER from showing any UI.

提交回复
热议问题