Kirix Support Forums

EventHandler problems...

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

EventHandler problems...

Postby rickg22 on Sat Jan 14, 2006 1:59 am

the UnInit() function fails to unload the event handler if another event handler has been pushed to the frame (Regards to 280Z28 for pointing out this bug).

Please replace

Code: Select all
if (m_frame->GetEventHandler() == this)
        m_frame->PopEventHandler();


with:

Code: Select all
m_frame->RemoveEventHandler(this);



Thanks!
rickg22
Registered User
 
Posts: 1
Joined: Sat Jan 14, 2006 1:56 am

Postby bpasquier on Wed Jan 18, 2006 12:38 pm

Hi,

I have exactly the same problem ...
I use differents event handlers in an MDI architecture and this patch allow a correct clean-up at application termination.

Thanks rickg22 for the solution :wink:

Bertrand
bpasquier
Registered User
 
Posts: 3
Joined: Wed Jan 18, 2006 12:33 pm
Location: Paris, FRANCE

Postby Ben on Wed Jan 18, 2006 8:15 pm

Hi,

It's already been replaced on our local tree. When 0.9.2 comes out, you'll see it. Thanks for the tip.

All the best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback