User forums > Help

C::B crash

(1/1)

manciuleas:
Hi,

I'm experiencing the following problem: start C::B, click Settings-> Environment -> CRASH.
I'm using self-compiled C::B, rev. 3761 and wxWidgets 2.6.4 unicode (same problem with 2.6.3) on Slackware 11.0 (gcc 3.4.6). This problem happens since I don't know which revision. I've tried to debug this issue, the program seems to crash around this lines

// tab "Notebook"
    XRCCTRL(*this, "cmbEditorTabs", wxComboBox)->SetSelection(cfg->ReadInt(_T("/environment/tabs_style"), 0));
    XRCCTRL(*this, "chkSmartTabs", wxCheckBox)->SetValue(cfg->ReadBool(_T("/environment/tabs_smart"), 0));
in environmentsettingsdlg.cpp
Attached is codeblock's debug report.

Thanks for any help/suggestion


[attachment deleted by admin]

thomas:
The likely reason is XRCCTRL(*this, "cmbEditorTabs", wxComboBox) or XRCCTRL(*this, "chkSmartTabs", wxCheckBox) returning null. In other words, either control being non-existent.

Make sure you have updated your XRCs to the latest version.

mandrav:

--- Code: ---cd trunk
make clean-zipfiles
make

--- End code ---

manciuleas:
It worked.  :D
Thanks very much!!!

Regards

Navigation

[0] Message Index

Go to full version