Redefining ATLASSERT
-
I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!
If it's just a macro, then just #define it to do nothing, after including the header that defines it to start with. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?! - Jon Hulatt, 22/3/2002
-
I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!
It compiles to nothing when you compile in release mode.
-
It compiles to nothing when you compile in release mode.
Thanks! However, I have been using debug builds and switching between a GUI app so I can step through code and the ASP pages. I missed redefining if after the header, I was trying to do it before the include. That redifined the macro however I am still getting assertion dialogs somewhere. Do you guys know off the top of you head any other assert macros that would get called from the ATL internals? Thanks again!
-
Thanks! However, I have been using debug builds and switching between a GUI app so I can step through code and the ASP pages. I missed redefining if after the header, I was trying to do it before the include. That redifined the macro however I am still getting assertion dialogs somewhere. Do you guys know off the top of you head any other assert macros that would get called from the ATL internals? Thanks again!
ATL makes heavy use of ATLASSERT internally.
-
I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!
#ifdef ATLASSERT
#undef ATLASSERT
#endif#define ATLASSERT ....
Michel If I am wrong or said something stupid, I apologize in advance ;)