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

Post Reply
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错误修复

Post by 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:)
WxAuiManager1->UnInit(); /// 清理管理器(clear manager).
Last edited by winterwjm on Wed Oct 24, 2018 8:04 am, edited 2 times in total.

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

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

Post by ONEEYEMAN » Mon Oct 22, 2018 8:59 pm

K sogaleniju nichego ne ponjatno.

Pishite pogalujsta na English.


Post Reply