| 8707 | } |
| 8708 | |
| 8709 | FatalConditionHandler::FatalConditionHandler() { |
| 8710 | isSet = true; |
| 8711 | // 32k seems enough for Catch to handle stack overflow, |
| 8712 | // but the value was found experimentally, so there is no strong guarantee |
| 8713 | guaranteeSize = 32 * 1024; |
| 8714 | exceptionHandlerHandle = nullptr; |
| 8715 | // Register as first handler in current chain |
| 8716 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 8717 | // Pass in guarantee size to be filled |
| 8718 | SetThreadStackGuarantee(&guaranteeSize); |
| 8719 | } |
| 8720 | |
| 8721 | void FatalConditionHandler::reset() { |
| 8722 | if (isSet) { |