So first, I want to express my great thanks to you.
I am using vc10 to utilize the code of CodeLite, Does it have violated the licence? In the time, the project is nothing with commercial,
if someday I gained profit from it, I of course would like to donate to Codelite.
My question is that:
In plugin Abbreviation activated the function AbbreviationPlugin::OnAbbreviations , at where exeute
Code: Select all
editor->ShowCompletionBox(tags, editor->GetWordAtCaret(), false, this);
Code: Select all
CodeCompletionBox::Display
Code: Select all
m_ccBox->Show(tags, word, isKeywordList, owner);
Code: Select all
void CCBox::Show(const wxString& word)
Code: Select all
Display(m_editor);
Now a puzzle problem is up:
In the void CCBox::Display(LEditor *editor), the function at last will call
Code: Select all
wxPopupWindow::Show(true)
this will result in
Code: Select all
void clMainFrame::OnAppActivated(wxActivateEvent &e)
Code: Select all
editor->HideCompletionBox();
Code: Select all
CodeCompletionBox::Get().Hide();
So in the time
Code: Select all
m_ccBox->Destroy();
The procedure lead to the
Code: Select all
void CCBox::Show(const wxString& word)
Code: Select all
Display(m_editor);
Because the m_ccBox itself have been destroyed and deleted!
Of courese the official version is good , but what is the fact that I encounterd.
Can you give me some help?
Thanks a lot!