Assert that m_pendingEvents is not NULL (patch #886852 sort of)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1095,6 +1095,9 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
|
||||
|
||||
void wxEvtHandler::ProcessPendingEvents()
|
||||
{
|
||||
// DE: It doesn't look like this method was intended to be called unless
|
||||
// pending events have already been created.
|
||||
wxASSERT_MSG(m_pendingEvents,wxT("Please call wxApp::ProcessPendingEvents() instead"));
|
||||
#if defined(__VISAGECPP__)
|
||||
wxENTER_CRIT_SECT( m_eventsLocker);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user