User forums > Help
Build Toolbar dead
Pecan:
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
thomas:
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.
Pecan:
Thanks thomas,
That was it. Guess my asm("int3")'s finally bit me in the ass.
thanks
Pecan
takeshimiya:
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");
}
--- End code ---
thomas:
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.
Navigation
[0] Message Index
[#] Next page
Go to full version