event.SetEventObject(this);
ProcessEvent(event);
+#if wxUSE_LOG
+ // flush the logged messages if any (do this after processing the events
+ // which could have logged new messages)
+ wxLog::FlushActive();
+#endif
+
return event.MoreRequested();
}
bool wxAppConsoleBase::IsScheduledForDestruction(wxObject *object) const
{
- return wxPendingDelete.Member(object);
+ return wxPendingDelete.Member(object) != NULL;
}
void wxAppConsoleBase::ScheduleForDestruction(wxObject *object)