Vadim Zeitlin
265db88d61
don't crash in Unicode build if command line arguments are not valid UTF-8 strings (bug 1614363)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-13 19:03:34 +00:00
Włodzimierz Skiba
02761f6cd4
Include wx/module.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 19:31:43 +00:00
Włodzimierz Skiba
9a6384ca1e
Improvements for building minimal builds and new ports: wxUSE_* usage and minor cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-08 11:25:30 +00:00
Vadim Zeitlin
d5bfbd9ab8
1. renamed wxFontMapper::IsWxFontMapper() to IsDummy() (with reverse semantics)
...
2. added wxFontMapper::Reset() to only do the cast needed when deleting
the font mapper object once
3. reset the dummy font mapper created during the app initialization in
wxFontMapperModule and not in init.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-07 17:49:27 +00:00
Julian Smart
62ad77afbd
If a base font mapper object was created prematurely before the traints
...
object was created, delete it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-06 11:02:09 +00:00
Włodzimierz Skiba
e7c80f9e05
wx/debug.h is always unconditionally included by wx/defs.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 15:13:23 +00:00
Vadim Zeitlin
5db920c9dd
delete the old log target if one had been created somehow even before DoCommonPreInit() was called
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 18:44:03 +00:00
Vadim Zeitlin
faa112c4ca
don't crash if conversion of a command line argument to Unicode fails
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:38:31 +00:00
Vadim Zeitlin
85149efad7
removed wxClassInfo::CleanUp() as it breaks wxEntry reentrancy: once the sm_classTable is destroyed it's not going to be recreated again; instead leave last wxClassInfo::Unregister() call do this
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 00:54:00 +00:00
Michael Wetherell
8d7eaf9140
Warning fixes for VC5 (Igor Korot)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-12 12:16:56 +00:00
Vadim Zeitlin
2ee96a251c
fix memory leak of wxMessageOutput if wxApp::OnInit() returned false
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-08 01:02:48 +00:00
Włodzimierz Skiba
d0ee33f5c6
'[1219035] cleanup: miscellaneous' and minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-13 12:19:33 +00:00
Vadim Zeitlin
338026503b
don't create (and leak) wxLogStderr in wxEntryReal(), we now create wxLogBuffer in DoCommonPreInit()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 18:24:23 +00:00
Włodzimierz Skiba
688e04b18f
wxPalmOS build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 16:21:25 +00:00
Włodzimierz Skiba
a20599da89
Missing include.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 10:08:45 +00:00
Vadim Zeitlin
1c7b2f0199
use wxLogBuffer to ensure that we don't lose error messages during initialization; only switch to wxLogGui when it's really safe to use it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-06 23:36:53 +00:00
Vadim Zeitlin
226c11c076
don't translate Win32 structured exceptions into C++ ones (requires always using a special wxEntry for MSW in init.cpp)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 22:31:23 +00:00
Kevin Hock
58c5fe3bef
Create non-GUI log target until GUI logging is available, allows stderr messages in non-Unicode builds when GTK fails to initialize (Patch 1017789)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 14:45:46 +00:00
Vadim Zeitlin
8c125d136d
moved fatal exception handling code to msw/main.cpp from common code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-17 01:54:25 +00:00
Włodzimierz Skiba
4055ed8281
Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 12:44:22 +00:00
Julian Smart
ffecfa5aeb
Committed William Osborne's wxPalmOS port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:40:30 +00:00
Włodzimierz Skiba
7beb59f36c
Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE/false, !!/!IsEmpty().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 18:13:32 +00:00
Vadim Zeitlin
a4de7e8ccf
clean up modules after destroying the app, not before it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-13 13:41:47 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Dimitri Schoolwerth
08989e30ed
applied patch #928786 : "Fix memory leak produced by ConvertArgsToUnicode()"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 17:18:20 +00:00
Václav Slavík
ced5554416
fixed wxDebugContext to work with global and static objects (patch 901031)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-28 23:57:54 +00:00
Ryan Norton
fdde072772
Reversed Change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 16:36:08 +00:00
Ryan Norton
e83f230124
warning...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-14 04:30:45 +00:00
Vadim Zeitlin
9e9eea73bc
gcc warning fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 15:59:22 +00:00
Vadim Zeitlin
fe277be0f1
call OnExit() even if an exception has been thrown from OnRun()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 16:18:19 +00:00
Vadim Zeitlin
fb3e83b60a
call wxApp::OnUnhandledException()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 23:36:07 +00:00
Václav Slavík
cafc76a4bb
deprecated Initialize/CleanUpClasses
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 12:10:30 +00:00
Václav Slavík
ab94455525
check memory leaks sooner, when wxLog target is still available
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 11:33:58 +00:00
Václav Slavík
77c6966e11
compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 14:01:22 +00:00
Vadim Zeitlin
a80e5f9e5b
wxTheApp can't be assigned to, anyhow, so make ms_appInstance private and provide Get/SetInstance() methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-01 23:37:40 +00:00
Vadim Zeitlin
7cafd224fe
replaced the old wxApp with wxAppConsole::ms_appInstance of type wxAppConsole; wxTheApp is now a macro for backwards compatibility (this fixes problems with contradictorary wxTheApp definitions in separate build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-01 23:00:16 +00:00
Václav Slavík
e8e1149bd7
make it possible to use wxConsoleApp in GUI build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 10:11:28 +00:00
Vadim Zeitlin
fc7a2a602b
undisable many warnings for VC++ in defs.h and fixed several thousands of them in the sources
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 00:24:07 +00:00
Vadim Zeitlin
c2892ef89b
wxGlobalSEHandler() takes PEXCEPTION_POINTERS now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-13 21:31:11 +00:00
Julian Smart
1c193821a9
More WinCE mods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 11:21:47 +00:00
Vadim Zeitlin
cda66071f1
VC 7.1 warning fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 21:20:56 +00:00
David Elliott
7fbc89bb02
Added CallOnInit() which allows the toolkit (wxCocoa) to do a bit of
...
processing around the real OnInit() call.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-03 15:32:11 +00:00
Vadim Zeitlin
005b5298e4
suppress warning about unused variable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 12:39:08 +00:00
Vadim Zeitlin
150cb19558
fixed Unicode compilation and run-time problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-01 00:29:47 +00:00
Vadim Zeitlin
abca8ebff1
small wxGTK compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 20:33:30 +00:00
Vadim Zeitlin
05e2b077c6
more work on fixing wxEntry() and ANSI/Unicode cmd line args mess
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 20:02:05 +00:00
Vadim Zeitlin
9482617091
extracted common initialization/cleanup functions in common/init.cpp; standardized wxEntry()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-30 18:43:09 +00:00
Vadim Zeitlin
e2478fde62
wxBase/GUI separation: 1st step, wxMSW should build, all the rest is broken
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 00:56:19 +00:00
Vadim Zeitlin
90aaa86507
free argv in Unicode build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-17 19:52:06 +00:00