| 12008 | } |
| 12009 | |
| 12010 | FatalConditionHandler::FatalConditionHandler() |
| 12011 | { |
| 12012 | isSet = true; |
| 12013 | // 32k seems enough for Catch to handle stack overflow, |
| 12014 | // but the value was found experimentally, so there is no strong guarantee |
| 12015 | guaranteeSize = 32 * 1024; |
| 12016 | exceptionHandlerHandle = nullptr; |
| 12017 | // Register as first handler in current chain |
| 12018 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 12019 | // Pass in guarantee size to be filled |
| 12020 | SetThreadStackGuarantee(&guaranteeSize); |
| 12021 | } |
| 12022 | |
| 12023 | void FatalConditionHandler::reset() |
| 12024 | { |