Steps:
1) Remove %users%\YOURUSER\AppData\Roaming\Codeblocks folder, just to simulate a fresh nighty install
2) Open C::B 11552
3) Press OK on compiler detection, no need to select one.
4) Same for "file associations".
5) Menu Settings -> Editor. Select "Syntax highlighting" at left pane.
6) Change a color, for example for "Comment normal".
7) Press OK button. The dialog closes.
8) Repeat 5 and 6.
Now, when OK is pressed a message appears:
"A debugging check in this application has failed".
"../../src/common/wincmn.cpp(1531): assert ""Assert failure"" failed in RemoveEventHandler(): where has the event handler gone?
Note that I have not clicked on the Scintilla preview window, but strictly the steps above.
If I click and scroll a bit, then two assert messages are shown, both identical.
Note: This ticket seems similar to #310 and #591
This could probably be fixed with this commit: https://sourceforge.net/p/codeblocks/code/11561/
At least i can not reproduce it with the latest trunk version
Last edit: bluehazzard 2019-02-06
@Manuel Martin: Does this reproduce with the latest night build?
With CB rev. 11628 the bug is gone. THX.
However, I see some flicker after closing the settings dialog. The toolbars layout is what flickers.
@Manuel Martin: Is this flickering new? We're recreating/reloading the editors after the settings are closed, so some flickering is probably expected, but I'm not sure. I don't think something changed about this recently.
Not that new, if I remember well (you know, you get used to something and notice nothing ;) . What is new is the amount of flicker, too much.
Can you track which night build is the first to have it that bad?
rev. 11623 (7 April 2019) is the culprit.
From your answer it is not clear if it happens with older night builds.
Is 116323 the only one you've tried? Is 116323 the first one which has the problem and the night build before it doesn't exhibit the problem?
I've tested 11511, 11552, 11579, 11623 and 11628. The excess of flicker began with 11623.
The original issue is fixed. About flicker, there is some filcker in current nightlies but it is expected.