Stop MSVC++ debug errors from blocking the current process?
- by Mike Arthur
Any failed ASSERT statements on Windows cause the below debug message to appear and freeze the applications execution. I realise this is expected behaviour but it is running periodically on a headless machine so prevent the unit tests from failing, instead waiting on user input indefinitely.
Is there s a registry key or compiler flag I can use to prevent this message box from requesting user input whilst still allowing the test to fail under ASSERT?
Basically, I want to do this without modifying any code, just changing compiler or Windows options.
Thanks!