Author Topic: C::B crash  (Read 3333 times)

Offline manciuleas

  • Multiple posting newcomer
  • *
  • Posts: 20
C::B crash
« on: March 28, 2007, 12:06:31 pm »
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]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: C::B crash
« Reply #1 on: March 28, 2007, 12:19:43 pm »
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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: C::B crash
« Reply #2 on: March 28, 2007, 12:21:21 pm »
Code
cd trunk
make clean-zipfiles
make
Be patient!
This bug will be fixed soon...

Offline manciuleas

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: C::B crash
« Reply #3 on: March 28, 2007, 01:13:11 pm »
It worked.  :D
Thanks very much!!!

Regards