How to prevent Debug.Assert(...) to show a modal dialog
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-05-18T01:14:53Z
Indexed on
2010/05/18
1:20 UTC
Read the original article
Hit count: 294
I have a couple of libraries which use Debug.Assert(...). I think that the Debug.Assert(...) are fine and I still want them to execute, but I don't want them to block the execution of my application. Ideally, I would only like them to be logged somewhere.
Given that I can't change the code of the libraries (and that I still want to compile in debug and run the assertion), how do I prevent Debug.Assert(...) to show a modal dialog?
Thanks!
© Stack Overflow or respective owner