The following steps result in the assert below.
1) Have project open with focus on source file.
2) Change focus to terminal and delete the file.
3) Click back on the source file in CB.
4) Click 'No' when it asks you asks you "Do you wish to keep the file open?"
ASSERT INFO:
../src/common/wincmn.cpp(461): assert "!wxMouseCapture::IsInCaptureStack(this)" failed in ~wxWindowBase(): Destroying window before releasing mouse capture: this will result in a crash later.
BACKTRACE:
[1] wxWindowBase::~wxWindowBase()
[2] wxControlBase::~wxControlBase()
[3] cbStyledTextCtrl::~cbStyledTextCtrl()
[4] wxWindowBase::Destroy()
[5] cbEditor::~cbEditor()
[6] cbEditor::~cbEditor()
[7] wxWindowBase::Destroy()
[8] EditorBase::Close()
[9] EditorManager::CheckForExternallyModifiedFiles()
[10] wxAppConsoleBase::CallEventHandler(wxEvtHandler, wxEventFunctor&, wxEvent&) const
[11] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler, wxEvent&)
[12] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler)
[13] wxEvtHandler::TryHereOnly(wxEvent&)
[14] wxEvtHandler::ProcessEventLocally(wxEvent&)
[15] wxEvtHandler::ProcessEvent(wxEvent&)
[16] wxEvtHandler::ProcessPendingEvents()
[17] wxAppConsoleBase::ProcessPendingEvents()
[18] wxApp::DoIdle()
[19] g_main_context_dispatch
[20] g_main_loop_run
[21] gtk_main
[22] wxGUIEventLoop::DoRun()
[23] wxEventLoopBase::Run()
[24] wxAppConsoleBase::MainLoop()
[25] CodeBlocksApp::OnRun() /home/john/third_party/codeblocks/src/src/app.cpp:852
[26] wxEntry(int&, wchar_t*)
[27] main /home/john/third_party/codeblocks/src/src/app.cpp:322
[28] __libc_start_main
[29] _start
BTW, this is compiled at revision 10529.
Should be fixed in r10563. Sorry for my sloppiness the first time I've fixed this issue.
If you encounter more similar errors just reopen one of the old tickets.
Thanks, tested on r10563 and it works for me.