-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A debugging check in this application has Failed #4806
Comments
Closed as a duplicate of #4783 |
but my OS is Windows11 |
This happens on any OS and is already fixed. |
Came here from microsoft/vcpkg#25437. |
@wangqr, probably because you're using wxwidgets port with already set 'wxDEBUG_LEVEL=0' ? |
Yes. Once I add The reason is that, wxWidgets is built with
So there are several cases:
So my opinion here is to left wxDEBUG_LEVEL as default (1) for both wxWidgets and boincmgr, and define Edit: I just realized that boincmgr uses static-linked wx on Windows. In this case i guess it's fine to compile wx with whatever options we need, and |
@wangqr, if you check, 'NDEBUG' is already set for release builds of BOINC: boinc/win_build/boincmgr_vs2019.vcxproj Line 107 in e9d1224
But debug asserts are still there and shown in runtime |
@wangqr, I assume, to keep asserts disabled, wxwidgets should be built with 'NDEBUG' also, but this flag is not supported by cmake build of wxwidgets. |
Yes, it's because
Then this issue will be fixed |
@wangqr, so you want to say that these two flags contradict each other, and if I set 'wxDEBUG_LEVEL=0' in my app, then 'NDEBUG' flag will keep debug asserts enabled? |
It is not 'wxDEBUG_LEVEL=0' and 'NDEBUG' contradict each other. It's 'wxDEBUG_LEVEL=1' when building wx, and 'wxDEBUG_LEVEL=0' in boincmgr, contradict each other.
To sum up, 'wxDEBUG_LEVEL' must be consistent when building and using wx. |
@wangqr, then I suggest next: make this flag a port option. Then this will enable you to keep debug asserts dormant and I can completely remove them from my release builds. |
IIRC there is no "port option" in vcpkg. You may make it a "feature" that can be toggled on or off. This will work for my use case. |
@wangqr, sorry, my bad. Saying 'option' I meant 'feature'. Thank you for correcting me. |
I had try to go to Simple View,but:
The text was updated successfully, but these errors were encountered: