Thanks for the backtrace... but I don't get it.
It says the problem happens in wxFlatNotebook/renderer.cpp line 963 (revision 3079), which is:
960 dc.DrawRectangle(rect);
961
962 // erase the bottom/top line of the rectangle
963 dc.SetPen( wxPen( pc->GetGradientColourFrom() ) );
964 if(pc->HasFlag(wxFNB_BOTTOM))
965 dc.DrawLine(rect.x, 2, rect.x + rect.width, 2);
It somehow gets to use wxvault.dll and tries to call a constructor (wxvault::wxvault()), then it fails causing a crash, but it seems Code::Blocks has nothing to do with it.
Since it's blaming wxFlatNotebook, could you check RC2? It's really old, but it didn't use that library. You may, and should, delete it afterwards :wink: