diff --git a/CMakeLists.txt b/CMakeLists.txt index 52e5856e1..8361780c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -515,8 +515,8 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8) IF(MSVC) # set default compiler settings - #SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GF /GY") - SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG") + SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa") + SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /EHa") # set default libs SET (CMAKE_C_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ") set (CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}") diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 0c1f93a5c..bb1094cfc 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -984,7 +984,7 @@ void Application::init(int argc, char ** argv) std::signal(SIGABRT,segmentation_fault_handler); std::set_terminate(my_terminate_handler); std::set_unexpected(unexpection_error_handler); - _set_se_translator(my_trans_func); +// _set_se_translator(my_trans_func); #endif initTypes();