SCR: Create a diagnostics log file for the default screensaver app.

This commit is contained in:
Rom Walton 2014-03-19 17:55:00 -04:00
parent 320bc5a853
commit 65c6252a9f
1 changed files with 15 additions and 0 deletions

View File

@ -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