Vadim Zeitlin
2d8e0096cd
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
2009-12-09 14:59:08 +00:00
Vadim Zeitlin
5ceb93670c
No real changes, just remove __WXDEBUG__ tests.
...
These tests are unnecessary now because asserts are almost always enabled. We
could test for wxDEBUG_LEVEL but the code still compiles even if it's defined
as 0 so there doesn't seem to be any need for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:59:01 +00:00
Vadim Zeitlin
5cd3213b65
Override OnAssertFailure() and not deprecated OnAssert() in except sample.
...
Also make the overridden version more interesting instead of just calling the
base class method from it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:58:56 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Francesco Montorsi
004867dbc5
Change in wxWindow the access specifier of the wxEvtHandler event processing and queuing functions
...
from public to protected. Adapt wxWidgets code and wxWidgets samples to always use wxWindow::GetEventHandler()
when calling such functions on a wxWindow rather than directly using wxWindow::ProcessEvent, etc.
This enables correct event dispatching to the event handlers which have been pushed (with PushEventHandler) on the
windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 11:58:39 +00:00
Vadim Zeitlin
92c01615ec
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit]() ones (patch 1905759)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:08:02 +00:00
Vadim Zeitlin
45e6e6f8ab
call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Julian Smart
3103e8a97e
Typo correction patch [ 1208110 ] Lots of typo corrections
...
Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
3eeb7e105e
added a test for/example of assert dialog box
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-19 16:14:58 +00:00
Włodzimierz Skiba
b6b375a917
Allow build without fatal exceptions support.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 19:46:15 +00:00
Vadim Zeitlin
cc9a39576a
added possibility to throw different objects and crash directly from the main frame; use OnExceptionInMainLoop() instead of overriding HandleEvent()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 22:33:09 +00:00
Mattia Barbon
60c474a0c4
Miscellaneous compilation and warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 10:41:35 +00:00
Vadim Zeitlin
f78e4942ec
added a test to check how exception handling works with Win32 SEH; corrected copyright
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-03 15:47:57 +00:00
Vadim Zeitlin
d32b901bac
compilation fix for !MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-24 10:46:54 +00:00
Włodzimierz Skiba
30deac1fa5
Missed header, -1->wxID_ANY replacements.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-28 10:45:07 +00:00
Julian Smart
be5a51fb59
More name changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Vadim Zeitlin
df5a063f61
destroy the frame if the exception occurs in a dialog shown from it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 16:23:51 +00:00
Vadim Zeitlin
532c773634
missing headers for !USE_PCH compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 15:52:34 +00:00
Vadim Zeitlin
556b8c1aab
new sample showing how to handle exceptions in wxWindows code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 23:37:54 +00:00