From 65c6252a9f86e3cd0325d769f974bb325927c750 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 19 Mar 2014 17:55:00 -0400 Subject: [PATCH] SCR: Create a diagnostics log file for the default screensaver app. --- clientscr/ss_app.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/clientscr/ss_app.cpp b/clientscr/ss_app.cpp index f14b2672fe..7f5d7a1683 100644 --- a/clientscr/ss_app.cpp +++ b/clientscr/ss_app.cpp @@ -486,6 +486,21 @@ int main(int argc, char** argv) { retry_connect = true; } } + + // Initialize the BOINC Diagnostics Framework + int dwDiagnosticsFlags = +#ifdef _DEBUG + BOINC_DIAG_HEAPCHECKENABLED | + BOINC_DIAG_MEMORYLEAKCHECKENABLED | +#endif + BOINC_DIAG_DUMPCALLSTACKENABLED | + BOINC_DIAG_PERUSERLOGFILES | + BOINC_DIAG_REDIRECTSTDERR | + BOINC_DIAG_REDIRECTSTDOUT | + BOINC_DIAG_TRACETOSTDOUT; + + diagnostics_init(dwDiagnosticsFlags, "stdoutscrgfx", "stderrscrgfx"); + #ifdef _WIN32 WinsockInitialize(); #endif