From ae4d8370ee0ca72df810a1638f09c058748b8d1e Mon Sep 17 00:00:00 2001 From: nealsid Date: Mon, 22 Jun 2009 21:45:31 +0000 Subject: [PATCH] Fix for crashs generation test app to not deadlock git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@352 4c0a9323-5329-0410-9bdc-e9ce6186880e --- .../windows/tests/crash_generation_app/crash_generation_app.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc index a3c560bd..5dfe4051 100644 --- a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc +++ b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc @@ -183,7 +183,7 @@ bool ShowDumpResults(const wchar_t* dump_path, delete [] text; } - AppendTextWorker(text); + QueueUserWorkItem(AppendTextWorker, text, WT_EXECUTEDEFAULT); return succeeded; } @@ -467,6 +467,7 @@ int APIENTRY _tWinMain(HINSTANCE instance, CustomClientInfo custom_info = {kCustomInfoEntries, kCustomInfoCount}; + CrashServerStart(); // This is needed for CRT to not show dialog for invalid param // failures and instead let the code handle it. _CrtSetReportMode(_CRT_ASSERT, 0);