User forums > Using Code::Blocks

C::B crash (Settings-->Editor)

<< < (6/16) > >>

Pecan:
Michael,

would you look in default.conf (or which ever the one you're using)
and show us your <codestat> entry.

thanks
pecan

Michael:

--- Quote from: Pecan on April 16, 2006, 01:06:17 am ---Michael,

would you look in default.conf (or which ever the one you're using)
and show us your <codestat> entry.

--- End quote ---

Sorry, but where it is located on Linux? I have just <str>CodeStatistics</str> under <locale> and <CodeStatistics bool="1" /> under <plugins>.

I will try to delete it and see what happen.

Best wishes,
Michael

Pecan:

--- Quote from: Michael on April 16, 2006, 01:24:27 am ---
--- Quote from: Pecan on April 16, 2006, 01:06:17 am ---Michael,

would you look in default.conf (or which ever the one you're using)
and show us your <codestat> entry.

--- End quote ---

Sorry, but where it is located on Linux?

Best wishes,
Michael


--- End quote ---

I believe it's in your home directory under ".codeblocks"
named default.conf


thanks
pecan

Michael:

--- Quote from: Pecan on April 16, 2006, 01:42:33 am ---I believe it's in your home directory under ".codeblocks"
named default.conf

--- End quote ---

Thank you :). I though it was somewhere under /, But after 15 minutes I have found it :).

Anyway, deleting it does not solve the crash.

The problem seems in language (LoadDefaultSettings at codestatconfig.cpp:224):


--- Code: ---languages[0].name = _T("C/C++");

--- End code ---

But I have not found exactly why. May be it depends on my configuration.

Best wishes,
Michael

Pecan:

--- Code: ---The problem seems in language (LoadDefaultSettings at codestatconfig.cpp:224):

--- End code ---

Actually, I'm leaning toward the fact that "languages" in
"LoadSetting(languages)" in the following code has never been allocated. But I
can't prove it yet.

The only allocation of languages is in the routine Execute()
which is never executed when the Editor/Settings routines
invokes CodeStatConfigDlg

I've got to figure out why "LoadSettings(languages)" doesn't get an error
from the compiler.


--- Code: ---CodeStatConfigDlg::CodeStatConfigDlg(wxWindow* parent)
{
    wxXmlResource::Get()->LoadPanel(this, parent, _("dlgCodeStatConfig"));

    // Load the languages parameters
    nb_languages = LoadSettings(languages);

    ReInitDialog();
}


--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version