I get the debug close dialogue (foo.exe has encountered a problem and needs to close.) during an automated test run. I would like to disable this so my application dies silently (or with command line message).
The nearest to a solution I have found is: http://support.microsoft.com/default.aspx?scid=kb;EN-US;188296 This disables the debug button on that dialogue but I still get the dialogue with a close button.
I have also tried the solution from How do I disable the 'Debug / Close Application' dialog on Windows Vista? which does not work on Windows XP.