diff options
Diffstat (limited to 'source/core/StarThread_windows.cpp')
-rw-r--r-- | source/core/StarThread_windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarThread_windows.cpp b/source/core/StarThread_windows.cpp index a7d09be..b63101d 100644 --- a/source/core/StarThread_windows.cpp +++ b/source/core/StarThread_windows.cpp @@ -46,6 +46,8 @@ struct ThreadImpl { static DWORD WINAPI runThread(void* data) { ThreadImpl* ptr = static_cast<ThreadImpl*>(data); try { + unsigned long exceptionStackSize = 16384; + SetThreadStackGuarantee(&exceptionStackSize); ptr->function(); } catch (std::exception const& e) { if (ptr->name.empty()) |