Menu

#665 [wxSmith] Create application with wx30 and wxAUIManager will create assert

Undefined
duplicate
Bug_Report
2019-02-18
2018-04-17
bluehazzard
No

Create a wxSmith sample (wxWidgets version > wx3.0) project with a wxAUIManager item will lead to a assert at closing the application:

src/common/wincmn.cpp(478):assert "GetEventHandler() == this" failed in ~wxWindowBase(): any pushed event handlers must have been removed"

this is a known "bug" in wxWidgets:
https://forums.wxwidgets.org/viewtopic.php?t=32138
fix for wxWidgets:
http://trac.wxwidgets.org/ticket/14145

this can be fixed by add a
wxAUIManager::UnInit() in the destructor of the application

i am working on a patch to add this in the code generator of wxSmith

Discussion

  • bluehazzard

    bluehazzard - 2018-04-17

    It seems that there is no destructor code generation implemented in wxSmith this makes fixing it a LOT more work...

     
  • Teodor Petrov

    Teodor Petrov - 2019-01-21

    Why don't you close this ticket as duplicate then?

     
  • bluehazzard

    bluehazzard - 2019-02-18
    • status: open --> duplicate
    • assigned_to: bluehazzard
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.