wxAuiManager Bug "GetEventHandler()==this"bugfix错误修复

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
winterwjm
In need of some credit
In need of some credit
Posts: 2
Joined: Sun May 28, 2017 5:14 am

wxAuiManager Bug "GetEventHandler()==this"bugfix错误修复

Postby winterwjm » 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).
}
Last edited by winterwjm on Wed Oct 24, 2018 8:04 am, edited 2 times in total.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2752
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxAuiManager Bug "GetEventHandler()==this"错误修复

Postby ONEEYEMAN » Mon Oct 22, 2018 8:59 pm

Privetstvuju,
K sogaleniju nichego ne ponjatno.

Pishite pogalujsta na English.

;-)


Return to “wxWidgets Development (Chinese)”

Who is online

Users browsing this forum: No registered users and 2 guests