From 85716ec3bff9eb881b8cb7242217169b05a21042 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Jul 2008 22:05:30 +0000 Subject: [PATCH] handle C++ exception in EVT_{TIMER,IDLE} handlers (#9768) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/appcmn.cpp | 2 +- src/common/timerimpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 54e9204d59..c9e6fbcec4 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -393,7 +393,7 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event) win->HasExtraStyle(wxWS_EX_PROCESS_IDLE) ) { event.SetEventObject(win); - win->GetEventHandler()->ProcessEvent(event); + win->HandleWindowEvent(event); if (event.MoreRequested()) needMore = true; diff --git a/src/common/timerimpl.cpp b/src/common/timerimpl.cpp index 4ab6fa8e23..c2ac8e8712 100644 --- a/src/common/timerimpl.cpp +++ b/src/common/timerimpl.cpp @@ -49,7 +49,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid) void wxTimerImpl::SendEvent() { wxTimerEvent event(*m_timer); - (void)m_owner->ProcessEvent(event); + (void)m_owner->SafelyProcessEvent(event); } bool wxTimerImpl::Start(int milliseconds, bool oneShot) -- 2.45.2