From 3355019cbed8d6bd00b013bae931102ab3e28aca Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 11 Feb 2016 08:17:20 -0800 Subject: [PATCH] Add custom bugsplat flags --- interface/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 4a875de844..50f02515e3 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -34,8 +34,10 @@ int main(int argc, const char* argv[]) { disableQtBearerPoll(); // Fixes wifi ping spikes #if HAS_BUGSPLAT - // BugSplat initialization - MiniDmpSender mpSender { "interface_alpha", "Interface", BuildInfo::VERSION.toLatin1().constData() }; + // Prevent other threads from hijacking the Exception filter, and allocate 4MB up-front that may be useful in + // low-memory scenarios. + DWORD bugSplatFlags = MDSF_PREVENTHIJACKING | MDSF_USEGUARDMEMORY; + MiniDmpSender mpSender { "interface_alpha", "Interface", BuildInfo::VERSION.toLatin1().constData(), nullptr, bugSplatFlags }; #endif QString applicationName = "High Fidelity Interface - " + qgetenv("USERNAME");