On Mon, 23 Feb 2015 11:52:25 +0100 Karl Karpfen wrote:
KK> OK, I don't get it working. When I set a
KK>
KK> #define wxDEBUG_LEVEL 0
KK>
KK> at the very first beginning the assert dialogue is still there.
You need to rebuild wxWidgets with wxDEBUG_LEVEL=0. However I don't
recommend doing it unless you really, really need to make the smallest
possible binaries. It's much better to leave the debugging checks in and
disable them in the production version but still be able to enable them if
necessary.
KK> When I try it with
KK>
KK> #include <wx/app.h>
KK> wxDISABLE_DEBUG_SUPPORT()
KK>
KK> I get several compiler errors:
KK>
KK> 'int wxDisableAsserts(void)' : overloaded function differs only by return
KK> type from 'void wxDisableAsserts(void)'
KK> 'wxDisableAsserts' : redefinition; different basic types
wxDISABLE_DEBUG_SUPPORT() must be inside your main() function. Also, you
usually don't need to call it explicitly, the standard solution is to
define NDEBUG for your release build, then this will be done for you by the
standard wxIMPLEMENT_APP() macro.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/