Ticket #11525 (closed defect: fixed)
Crash when closing App : RemovePendingEventHandler
|Reported by:||jds210||Owned by:|
When closing an App, the wxApp instance is destroyed, but the destructor of wxEvtHandler (base class) may call RemovePendingEventHandler without checking if it is 'this'.
If the wxEvtHandler is the App, then errors occur because members of the wxApp object have already been destroyed (notably the critical section objects). Maybe wxEvtHandler should not call RemovePendingEventHandler if the wxTheApp == this?