Added a warning about SSE2 problem in Xerces-C++
This commit is contained in:
parent
d47e52cedc
commit
07d775377d
|
@ -814,6 +814,8 @@ MyFrame::MyFrame (
|
||||||
expandInternalEntities = config->Read ( _T ( "expandInternalEntities" ), true );
|
expandInternalEntities = config->Read ( _T ( "expandInternalEntities" ), true );
|
||||||
|
|
||||||
lastSymbol = config->Read( _T( "lastSymbol" ), _T ( "*" ) );
|
lastSymbol = config->Read( _T( "lastSymbol" ), _T ( "*" ) );
|
||||||
|
|
||||||
|
xercescSSE2Warning = config->Read ( _T ( "xercescSSE2Warning" ), true );
|
||||||
}
|
}
|
||||||
else // config not found
|
else // config not found
|
||||||
{
|
{
|
||||||
|
@ -865,6 +867,24 @@ MyFrame::MyFrame (
|
||||||
exportEpub = exportRtf = exportDoc = exportFullDaisy = true;
|
exportEpub = exportRtf = exportDoc = exportFullDaisy = true;
|
||||||
|
|
||||||
lastSymbol = _T( "*" );
|
lastSymbol = _T( "*" );
|
||||||
|
xercescSSE2Warning = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( XMLPlatformUtils::fgSSE2ok
|
||||||
|
&& xercescSSE2Warning
|
||||||
|
&& wxTheApp->argc == 1 )
|
||||||
|
{
|
||||||
|
xercescSSE2Warning = wxMessageBox (
|
||||||
|
_ ("SSE2 is enabled in Xerces-C++ library. Xerces-C++ doesn't "\
|
||||||
|
"use them in a thread-safe way. It may cause program crashes "\
|
||||||
|
"(segmentation faults).\n\n"\
|
||||||
|
"If it happens, please try compiling Xerces-C++ with SSE2 "\
|
||||||
|
"disabled.\n\n"\
|
||||||
|
"OK:\tShow this warning next time\n"\
|
||||||
|
"Cancel:\tDisable the warning\n"),
|
||||||
|
_ ("SSE2 problem in Xerces-C++"),
|
||||||
|
wxOK | wxCANCEL | wxICON_WARNING
|
||||||
|
) == wxOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
largeFileProperties.completion = false;
|
largeFileProperties.completion = false;
|
||||||
|
@ -1153,6 +1173,7 @@ MyFrame::~MyFrame()
|
||||||
config->Write ( _T ( "unlimitedUndo" ), unlimitedUndo );
|
config->Write ( _T ( "unlimitedUndo" ), unlimitedUndo );
|
||||||
|
|
||||||
config->Write ( _T ( "lastSymbol" ), lastSymbol );
|
config->Write ( _T ( "lastSymbol" ), lastSymbol );
|
||||||
|
config->Write ( _T ( "xercescSSE2Warning" ), xercescSSE2Warning );
|
||||||
|
|
||||||
manager.UnInit();
|
manager.UnInit();
|
||||||
wxTheClipboard->Flush();
|
wxTheClipboard->Flush();
|
||||||
|
|
|
@ -457,7 +457,8 @@ class MyFrame : public wxFrame
|
||||||
exportEpub,
|
exportEpub,
|
||||||
exportRtf,
|
exportRtf,
|
||||||
exportDoc,
|
exportDoc,
|
||||||
exportFullDaisy;
|
exportFullDaisy,
|
||||||
|
xercescSSE2Warning;
|
||||||
wxBitmap newBitmap,
|
wxBitmap newBitmap,
|
||||||
new16Bitmap,
|
new16Bitmap,
|
||||||
openBitmap,
|
openBitmap,
|
||||||
|
|
Loading…
Reference in New Issue