]> git.saurik.com Git - wxWidgets.git/commit - src/common/appbase.cpp
Better handling for asserts in non-main threads.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Dec 2009 14:59:08 +0000 (14:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Dec 2009 14:59:08 +0000 (14:59 +0000)
commit2d8e0096cd998ef0c3c282fec593d4ccd12e3eb4
tree6a724df5b1f80c2a3cfd503b01bb8d455ca500b4
parent5ceb93670ce69045f5dcc9bf4599d3942abdd164
Better handling for asserts in non-main threads.

Don't call wxTrap() when an assert in a non-main thread fails. As asserts are
now always enabled by default, this is not a good idea. Instead just show the
full details about the assert failure using wxMessageOutputDebug under the
platforms without MT-safe message box function (i.e. everything but MSW
currently).

Add a possibility to test an assert happening in non-main thread to the except
sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/except/except.cpp
src/common/appbase.cpp
src/common/appcmn.cpp
src/gtk/utilsgtk.cpp