From 23b7973c244c3d7e02e672fe7df097de7be5d0ff Mon Sep 17 00:00:00 2001 From: Arrigo Marchiori Date: Fri, 3 Nov 2017 17:45:53 +0100 Subject: [PATCH] Mention possible problem with wxProgressDialog created in OnInit() Such dialogs must be destroyed before the main event loop starts running to avoid problems with the temporary event loop created by the dialog internally. See #17983. --- interface/wx/progdlg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/wx/progdlg.h b/interface/wx/progdlg.h index 6f7fb1681d..e5b0ac3f36 100644 --- a/interface/wx/progdlg.h +++ b/interface/wx/progdlg.h @@ -49,6 +49,9 @@ } } @endcode + Note that this becomes even more important if the dialog is instantiated + during the program initialization, e.g. from wxApp::OnInit(): the dialog + must be destroyed before the main event loop is started in this case. @beginStyleTable @style{wxPD_APP_MODAL}