From 12930b7ecee218d494af38e67f355bdee3fe4fd9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Sep 2016 20:12:49 +0200 Subject: gui/main: terminate before main ends on msvc --- gui/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gui/main.cpp b/gui/main.cpp index 2e809d0f..e452b781 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -161,9 +161,19 @@ main(int argc, char** argv) qDebug() << "exit: main()"; + // msvc crashes again in some destructor +#if defined(_MSC_VER) + qDebug() << "exit: terminating"; + TerminateProcess(GetCurrentProcess(), 0); +#endif + return 0; } +#if defined(Q_CREATOR_RUN) +# pragma clang diagnostic ignored "-Wmain" +#endif + #ifdef _MSC_VER int WINAPI WinMain (struct HINSTANCE__ *hInstance, -- cgit v1.2.3