You were right, it seems that the crashes with wxWidgets 2.8.0 are in fact general crashes when compat24 is turned off... I'm seeing the same ones in wxWidgets 2.6.3p2 now, that I did with wxWidgets 2.8.0rc1 earlier:
Settings > Environments *crash*CodeSettings > Editor *crash*../src/generic/listctrl.cpp(3699): assert "wxAssertFailure" failed: invalid item index in SetItem
CodeSettings > Compiler and Debugger *crash*../src/generic/listctrl.cpp(3699): assert "wxAssertFailure" failed: invalid item index in SetItem
CodeSettings > Global variables *crash*../src/common/list.cpp(326): assert "wxAssertFailure" failed: invalid index in wxListBase::Item
Code../src/mac/carbon/choice.cpp(217): assert "wxAssertFailure" failed: wxChoice::GetString(): invalid index
So it seems that debugging/fixing Code::Blocks with this compat setting turned off in wxWidgets 2.6 is a good idea to start with, as it is both good now and will also help running with wxWidgets 2.8 later ?
WXWIN_COMPATIBILITY_2_4 set to 0. (WXWIN_COMPATIBILITY_2_4 is set in setup.h file.)
I think some of these were showing up as failed assertions before, well worth looking into:
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1538&group_id=5358
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1539&group_id=5358
But, the other one does not apply to this problem, so most likely not useful.
But, the other one does not apply to this problem, so most likely not useful.
Maybe not, but getting rid of the failed assertions looked like a worthy side-effect of this bughunt.
As long as it runs without assertions for normal usage, it's all OK...
I didn't mean for the patch applied as-is, as it is rather old by now.
env_settings.xrc inside resources.zip is using class="wxCheckList" it should use class="wxCheckListBox"The project dependencies dialog also crashes with wx 2.8.0 due to the same kind of issue:
env_settings.xrc inside resources.zip is using class="wxCheckList" it should use class="wxCheckListBox"The project dependencies dialog also crashes with wx 2.8.0 due to the same kind of issue:
project_deps.xrc in manager_resources.zip (src/sdk/resources/project_deps.xrc in svn) is using "wxCheckList" instead of "wxCheckListBox".
Index: src/sdk/resources/project_deps.xrc
===================================================================
--- src/sdk/resources/project_deps.xrc (revision 3627)
+++ src/sdk/resources/project_deps.xrc (working copy)
@@ -28,7 +28,7 @@
<border>8</border>
</object>
<object class="sizeritem">
- <object class="wxCheckList" name="lstDeps">
+ <object class="wxCheckListBox" name="lstDeps">
<content/>
</object>
<option>1</option>