diff --git a/CInterface/Core.cpp b/CInterface/Core.cpp index f2682cf..748c066 100644 --- a/CInterface/Core.cpp +++ b/CInterface/Core.cpp @@ -1,3 +1,4 @@ #include "Core.hpp" +std::string ExceptionHandler::_ArbutilsLastException = ""; export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); } diff --git a/CInterface/Core.hpp b/CInterface/Core.hpp index 4e27496..3a2d0c7 100644 --- a/CInterface/Core.hpp +++ b/CInterface/Core.hpp @@ -9,7 +9,7 @@ #define ArbutilsException 3; class ExceptionHandler { - static thread_local std::string _ArbutilsLastException; + static std::string _ArbutilsLastException; public: static void SetLastException(const std::exception& e) { _ArbutilsLastException = std::string(e.what()); }