Ticket #11525 (closed defect: fixed)
Crash when closing App : RemovePendingEventHandler
| Reported by: | jds210 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | 2.9.0 |
| Keywords: | wxEvtHandler destructor | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
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?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

