diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-04-30 15:14:49 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-04-30 15:14:49 +1000 |
commit | a521dc5c74d54466dd3fc432057b96c30504a748 (patch) | |
tree | 8240eff0bdf1aba309c27ed0a9e772a2db43e425 /source/application | |
parent | d8db6199e13b5405123f18cc1a9631f7e7f4794a (diff) |
Guarantee stack space in exception handling so printing stack overflows doesn't fail
Diffstat (limited to 'source/application')
-rw-r--r-- | source/application/StarMainApplication.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/application/StarMainApplication.hpp b/source/application/StarMainApplication.hpp index 5ba06e7..172e2da 100644 --- a/source/application/StarMainApplication.hpp +++ b/source/application/StarMainApplication.hpp @@ -22,6 +22,8 @@ namespace Star { freopen("CONOUT$", "w", stdout); \ freopen("CONOUT$", "w", stderr); \ } \ + unsigned long exceptionStackSize = 16384; \ + SetThreadStackGuarantee(&exceptionStackSize); \ return Star::runMainApplication(Star::make_unique<ApplicationClass>(), args); \ } |