From: Stefan Csomor Date: Fri, 30 Jan 2009 20:58:08 +0000 (+0000) Subject: workaround for crashes in release builds X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b69470e4eeb3301c0f606e15edaafd7425cc70dc?hp=e47e063af24e5f43fdee8b0a1c220e12f7f7e896 workaround for crashes in release builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index d1c3b6d783..ee5a422954 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -69,7 +69,9 @@ // use in DLL build under pre-Vista Windows so we disable this code for now, if // anybody really needs to use UTF-8 build under Windows with this optimization // it would have to be re-tested and probably corrected -#if wxUSE_UNICODE_UTF8 && !defined(__WXMSW__) +// CS: under OSX release builds the string destructor/cache cleanup sometimes +// crashes, disable until we find the true reason or a better workaround +#if wxUSE_UNICODE_UTF8 && !defined(__WXMSW__) && !defined(__WXOSX__) #define wxUSE_STRING_POS_CACHE 1 #else #define wxUSE_STRING_POS_CACHE 0