Code::Blocks Forums

User forums => Help => Topic started by: Pecan on November 10, 2005, 04:53:37 pm

Title: Build Toolbar dead
Post by: Pecan on November 10, 2005, 04:53:37 pm
Help please,

The build section of the toolbar stopped functioning for me. The section to the left of the build section works fine, ie. "new project" through "replace". Everything to the right is dead.
What did I do?

So... I uninstalled C::B, used regcrawler to remove all footprints
of "codeblocks" and "Code::blocks" from the registry. then
re-installed a fresh distribution of C::B rc2-mingw.

Then I used the wizard to generate a console app. The build/run/debug section
of the toolbar is still dead. It doesnt even show the bubble tips.

How do I get it back??

thanks
Pecan
Title: Re: Build Toolbar dead
Post by: thomas on November 10, 2005, 04:56:48 pm
Almost all problems with the toolbar like the one you state are due to a corrupt .cb_layout.bin file (found in your home folder). This may get corrupted when the app crashes.
Delete that, and try again.
Title: Re: Build Toolbar dead
Post by: Pecan on November 10, 2005, 05:00:40 pm
Thanks thomas,

That was it. Guess my asm("int3")'s finally bit me in the ass.

thanks
Pecan
Title: Re: Build Toolbar dead
Post by: takeshimiya on November 10, 2005, 06:12:59 pm
This is a deja vu ~ common problem.


There is a way of preventing the corruption of the wxDockIt layout?

It seems to me that the .cb_layout.bin gets corrupted when exiting C::B (and C::B crashed) while the layout was saving to disk.

Can something like this be done?:
Code
Exit()
{
    bool saved_ok = wxDockItSaveFile(".cb_layout.bin.temp");

    if(saved_ok)
        OperatingSystemMoveFile(".cb_layout.bin.temp", ".cb_layout.bin");
    else
        Print("Something gone wrong, so better we don't replace the previous .cb_layout.bin");
}

Title: Re: Build Toolbar dead
Post by: thomas on November 10, 2005, 07:15:52 pm
Technically yes, there is even a dedicated wxWindows class to do this (wxTempFile).

However, this change does not make much sense now, since .cb_layout.bin will 99% likely no longer exist after next week.
Title: Re: Build Toolbar dead
Post by: sethjackson on November 11, 2005, 12:11:21 am
Technically yes, there is even a dedicated wxWindows class to do this (wxTempFile).

However, this change does not make much sense now, since .cb_layout.bin will 99% likely no longer exist after next week.

Thats good to know.  8)
Title: Re: Build Toolbar dead
Post by: takeshimiya on November 11, 2005, 10:38:07 am
Great! :D

Where it'll be stored?
Title: Re: Build Toolbar dead
Post by: thomas on November 11, 2005, 11:11:44 am
(http://www.cineclub.de/images/2005/07/madagascar-1.jpg)
You didn't see anything!
Title: Re: Build Toolbar dead
Post by: rickg22 on November 11, 2005, 10:40:16 pm
eh? O.o
Title: Re: Build Toolbar dead
Post by: takeshimiya on November 11, 2005, 10:42:05 pm
me neither o_O