Ok, it seems like an internal error of wxWidgets. Could somebody else check if this happens too?
Oh, sure, what happens: Code::Blocks crashes (tested with Code::Blocks CVS 29-Jun-05 and wxWidgets 2.6.1 under Windows with GCC 3.4.4).
Ok, I'll be a bit more specific.
I'ven't found the exact way to reproduce it but it has to do with the toolbar.
Open Code::Blocks. Ok, good, it loaded. Now start moving the mouse pointer side to side, left to right and right to left, over the toolbar. If it hasn't crashed yet try opening a project and continue moving the mouse over it. At some point it'll crash, at least here.
The backtrace looks like this:
Program received signal SIGSEGV, Segmentation fault.
0x10178a4a in wxToolBar::FindToolForPosition ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
(gdb) bt
#0 0x10178a4a in wxToolBar::FindToolForPosition ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#1 0x101795d7 in wxToolBar::HandleMouseMove ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#2 0x101796fb in wxToolBar::MSWWindowProc ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#3 0x10109e20 in wxWndProc () from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#4 0x77d18709 in USER32!GetDC () from D:\WINDOWS\system32\user32.dll
#5 0x009b05a0 in ?? ()
#6 0x00000200 in ?? ()
#7 0x00000000 in ?? () from
#8 0x000a0395 in ?? ()
#9 0x10109de0 in wxWindowCreationHook::~wxWindowCreationHook ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#10 0x77d187eb in USER32!GetDC () from D:\WINDOWS\system32\user32.dll
#11 0x10109de0 in wxWindowCreationHook::~wxWindowCreationHook ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#12 0x77d189a5 in USER32!GetWindowLongW () from D:\WINDOWS\system32\user32.dll
#13 0x00000000 in ?? () from
#14 0x10109de0 in wxWindowCreationHook::~wxWindowCreationHook ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
#15 0x77d1bccc in USER32!DispatchMessageA ()
from D:\WINDOWS\system32\user32.dll
#16 0x0022fc80 in ?? ()
#17 0x00000001 in ?? ()
#18 0x0022fc18 in ?? ()
#19 0x100e9775 in wxEventLoop::ProcessMessage ()
from D:\WINDOWS\system32\wxmsw26_gcc_custom.dll
Previous frame identical to this frame (corrupt stack?)
Nasty, eh?
I tested with another program which also has a toolbar and couldn't get it to crash. Who knows, at the end it could be a problem with a widget of Code::Blocks that gets Destroyed or something.