On Windows/c++, I want to customize the assert dialog box to ignore an assertion forever, so I can be more aggressive with assertions. I understand how hard it is to write a correct assert macro, and do not wish to do this, just hook the dialog code. Is there an easy way (or concise hack) to do this?
article on assert macro dangers (googlecache)
update: more aggressive => use far more frequently and for noncrash bugs. I want to be able to ignore an assertion forever so if a minor bug assertion occurs in a loop it doesn’t effectively halt my process.
Look into the _CrtSetReportHook function or the newer _CrtSetReportHook2. You can use it to install a hook that remembers ‘seen’ messages, and reports them as handled when seen again.