المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Switch off Debug Assertions



C++ Programming
06-18-2012, 02:31 AM
Hi, I have a problem, i got a huge project which works nice in release build, but in debug version I get thousands of debug assertion failures, which i realy dont want to care about.

It is this kind of thing what is failing (in afxwin2.inl): (m_hWnd is NULL)

_AFXWIN_INLINE void CWnd::ShowScrollBar(UINT nBar, BOOL bShow) { ASSERT(::IsWindow(m_hWnd)); ::ShowScrollBar(m_hWnd, nBar, bShow); }
With these debug assertions it is not possible for me to Debug the project.

I just want to change a little part of the project, but without debugmode (i need traces and so on) this will become very hard, so it is in any way possible to switch them off ?

And yes, i know assertions are my best friend, because they tell me something is wrong, but in this case I do not want to care about what is wrong, I only want to get my work done quickly without reprogramming the application.


Thank you http://www.barakasoft.com/script/Forums/Images/smiley_wink.gif