No description
Find a file
Vadim Zeitlin 509fcb0214 Avoid resetting wxTheApp too early while still avoiding crashes
Both recent changes trying to order resetting wxTheApp and flushing the
logs failed: 055c4cbed5 (Fix crash on shutdown if wxConfig couldn't be
saved, 2024-01-04) did because it reset wxTheApp too late and wxLogGui
was created when it was already unsafe to use, while b628237245 (Fix
crash due to using wxLog during shutdown in a better way, 2024-01-26)
failed because it reset wxTheApp too early, resulting in it being null
during execution of window destructors which could expect wxTheApp to
still be available.

And while 6636a2ac9e (Fix recent regression with destroying
wxDataViewCtrl on app exit, 2024-01-30) fixed one of the problems due to
the latter change, there are no guarantees that there are no more such
problems, especially in user-defined destructors in the application
code.

So instead of resetting wxTheApp before or after calling CleanUp(), now
do it in the middle of wxAppBase::CleanUp(): just after destroying all
the windows (and so executing any user-defined destructors) but before
the application object becomes truly unusable.

Note that this relies on the previous commit, as before it the
application became unusable even before wxAppBase::CleanUp() execution
started in some ports (notably wxGTK).

See #24252.
2024-01-30 21:10:41 +01:00
.circleci Don't set LD_LIBRARY_PATH for CI workflows 2024-01-29 01:20:52 +01:00
.github Don't set LD_LIBRARY_PATH for CI workflows 2024-01-29 01:20:52 +01:00
3rdparty Update nanosvg to the latest upstream version 2024-01-19 21:17:43 +01:00
art Remove support for wxMotif 2022-10-16 16:39:56 +02:00
build Use -rpath option when linking all the libraries too 2024-01-29 01:15:40 +01:00
demos Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02:00
distrib Remove all blank "Modified by:" lines from top comment blocks 2023-10-22 01:22:48 +02:00
docs Add holiday authority overview 2024-01-23 03:23:41 +01:00
include wxX11: don't call CleanUp() from wxApp::Exit() 2024-01-30 20:36:41 +01:00
interface Add wxRadioButton group support to wxGenericValidator 2024-01-30 01:52:59 +01:00
lib Add support for PCRE2 for OpenVMS 2021-08-20 10:00:17 +02:00
locale Update Albanian translations 2024-01-17 18:46:47 +01:00
misc Suppress ASAN report about memory leaks in g_quark_init() 2024-01-27 19:06:56 +01:00
samples Make keyboard sample window bigger on high DPI screens 2024-01-27 17:56:21 +01:00
src Avoid resetting wxTheApp too early while still avoiding crashes 2024-01-30 21:10:41 +01:00
tests Add wxStandardPaths::GetSharedLibrariesDir() 2024-01-28 18:41:20 +01:00
utils Fix typos and repeated words in comments and documentation 2023-11-30 02:21:34 +01:00
.cirrus.yml Don't set LD_LIBRARY_PATH for CI workflows 2024-01-29 01:20:52 +01:00
.editorconfig Revert changes in Editor Config file made by mistake in 5fbe3cab 2018-11-01 18:37:34 +01:00
.git-blame-ignore-revs Ignore NULL to nullptr change in git blame output 2023-11-17 00:38:33 +01:00
.gitattributes Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00
.gitignore Introduce minimal MSW ARM support 2024-01-21 01:48:16 +01:00
.gitmodules Add scintilla and Lexilla submodules 2023-02-14 22:43:17 +01:00
.mailmap Add mailmap entry for Hans Mackowiak 2023-08-25 17:23:38 +02:00
acinclude.m4 Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00
aclocal.m4 Replace AM_PATH_GTK_N_0() macros with use of PKG_CHECK_MODULES() 2023-07-24 00:00:18 +02:00
appveyor.yml Remove wxUSE_STL which is not really used any longer 2023-04-15 17:22:09 +02:00
autoconf_inc.m4 Link CEF files into webview sample build directory under Unix 2023-09-15 01:56:08 +02:00
autogen.sh Remove frozen autoconf macros version a.k.a. "auto hacks" 2023-07-24 00:11:26 +02:00
CMakeLists.txt Merge branch 'master' into webview-chromium 2024-01-17 00:22:39 +01:00
config.guess Update config.{guess,sub} scripts to latest versions 2022-12-02 08:43:11 -08:00
config.sub Update config.{guess,sub} scripts to latest versions 2022-12-02 08:43:11 -08:00
configure Also set rpath under FreeBSD 2024-01-29 01:52:14 +01:00
configure.ac Also set rpath under FreeBSD 2024-01-29 01:52:14 +01:00
descrip.mms workaround for which is probably a compiler-bug on OpenVMS-AXP 2021-01-07 09:47:46 +01:00
install-sh
Makefile.in Use -rpath option when linking all the libraries too 2024-01-29 01:15:40 +01:00
mkinstalldirs Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
README-GIT.md Add a note about updating submodules to Git README too 2022-08-04 02:30:25 +02:00
README.md Update maximum supported compiler versions in main readme 2023-08-24 15:05:03 +02:00
regen Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
setup.h.in Assume release CEF build by default under Unix 2023-09-19 00:36:07 +02:00
setup.h_vms Assume sigaction::sa_handler always takes "int" 2023-06-30 00:26:19 +01:00
version-script.in Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config-inplace.in Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
wx-config.in Only include Scintilla libraries in wx-config --libs if needed 2023-07-23 02:35:53 +02:00
wxwidgets.props Remove obsolete options from MSVS .props files 2023-11-30 02:52:25 +01:00
wxwin.m4 Remove configure.in to configure.ac 2023-07-24 00:11:26 +02:00

About

wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.

wxWidgets Logo

wxWidgets allows you to write native-looking GUI applications for all the major desktop platforms and also helps with abstracting the differences in the non-GUI aspects between them. It is free for the use in both open source and commercial applications, comes with the full, easy to read and modify, source and extensive documentation and a collection of more than a hundred examples. You can learn more about wxWidgets at https://www.wxwidgets.org/ and read its documentation online at https://docs.wxwidgets.org/

Platforms

AppVeyor Unix (make) Unix (CMake) MSW (MSVC) MSW (gcc) Mac OSS-Fuzz

This version of wxWidgets supports the following primary platforms:

  • Windows 7, 8, 10 and 11 (32/64 bits).
  • Most Unix variants using the GTK+ toolkit (version 2.6 or newer or 3.x).
  • macOS (10.10 or newer) using Cocoa under both amd64 and ARM platforms.

All C++11 compilers are supported including but not limited to:

  • Microsoft Visual C++ 2015 or later (up to 2022).
  • g++ 4.8 or later (up to 13), including MinGW/MinGW-64/TDM under Windows.
  • Clang (up to 16).

Please use 3.2 branch if you must use wxWidgets with a C++98 compiler or support Windows XP.

Licence

wxWidgets licence is a modified version of LGPL explicitly allowing not distributing the sources of an application using the library even in the case of static linking.

Building

For building the library, please see platform-specific documentation under docs/<port> directory, e.g. here are the instructions for wxGTK, wxMSW and wxOSX.

If you're building the sources checked out from Git, and not from a released version, please see these additional Git-specific notes.

Further information

If you are looking for community support, you can get it from

Commercial support is also available.

Finally, keep in mind that wxWidgets is an open source project collaboratively developed by its users and your contributions to it are always welcome. Please check our guidelines if you'd like to do it.

Have fun!

The wxWidgets Team.