From 4a2d23c14089cb98901e3df535037f7d8095e9a7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 4 Jan 2018 09:23:06 +0100 Subject: main: workaround crash on exit without terminating process --- gui/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/main.cpp b/gui/main.cpp index 3739232f..5d43cc14 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -202,7 +202,8 @@ main(int argc, char** argv) while (false); // msvc crashes in Qt plugin system's dtor -#if defined(_MSC_VER) + // Note: QLibrary::PreventUnloadHint seems to workaround it +#if defined(_MSC_VER) && 0 qDebug() << "exit: terminating"; TerminateProcess(GetCurrentProcess(), 0); #endif -- cgit v1.2.3