]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
open registry keys in read-only mode as we might not have the rights for full access...
[wxWidgets.git] / src / common / event.cpp
index 5c40ecf1c803a24174018f2d7d906ebe02c7a2d2..8b0fb73f573af0229d1506ee87013c60c75b1ed9 100644 (file)
@@ -1095,6 +1095,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
 
 void wxEvtHandler::ProcessPendingEvents()
 {
+    // this method is only called by wxApp if this handler does have pending
+    // events
+    wxCHECK_RET( m_pendingEvents,
+                 wxT("Please call wxApp::ProcessPendingEvents() instead") );
+
 #if defined(__VISAGECPP__)
     wxENTER_CRIT_SECT( m_eventsLocker);
 #else