wxAuiManager Bug "GetEventHandler()==this"bugfix错误修复
Posted: Sat Oct 20, 2018 5:34 am
在生成wxWidgetsFrame后,再加wxAuiMAnager后,编译并运行程序,退出程序时会出错:(add wxAuiManager in wxwidgetFrame, then compile and run, when exit the programme, error popup
"GetEventHandler()==this failed in ~wxWindowsBase()"
解决办法:在析构函数里面加入一句:(solving method:add one line in destructor:)
aui_FormFrm::~aui_FormFrm()
{
WxAuiManager1->UnInit(); /// 清理管理器(clear manager).
}
"GetEventHandler()==this failed in ~wxWindowsBase()"
解决办法:在析构函数里面加入一句:(solving method:add one line in destructor:)
aui_FormFrm::~aui_FormFrm()
{
WxAuiManager1->UnInit(); /// 清理管理器(clear manager).
}