[rkward-cvs] SF.net SVN: rkward-code:[4605] trunk/rkward/rkward/main.cpp
tfry at users.sf.net
tfry at users.sf.net
Sun Mar 17 14:17:36 UTC 2013
Revision: 4605
http://sourceforge.net/p/rkward/code/4605
Author: tfry
Date: 2013-03-17 14:17:35 +0000 (Sun, 17 Mar 2013)
Log Message:
-----------
Remove some legacy code (from the times of backend living in the same thread)
Modified Paths:
--------------
trunk/rkward/rkward/main.cpp
Modified: trunk/rkward/rkward/main.cpp
===================================================================
--- trunk/rkward/rkward/main.cpp 2013-03-17 13:38:19 UTC (rev 4604)
+++ trunk/rkward/rkward/main.cpp 2013-03-17 14:17:35 UTC (rev 4605)
@@ -196,20 +196,5 @@
qInstallMsgHandler (0);
RKSettingsModuleDebug::debug_file->close ();
-#ifdef Q_WS_WIN
- // HACK: Somehow, if we created a windows graph-device during runtime (possibly also on other conditions), we just can't exit cleanly anymore.
- // We get out of the event loop, but once we return from main (including using _endthread(), _exit(), exit(), abort(), raise(SIGSEGV),
- // ExitProcess(), and I don't know, what else I tried), the process just continues to sit there, hogging up one CPU.
- // R 2.9.0, KDElibs 4.2.3, Qt 4.4.3, WinXP SP2
- // So what we do is
- // 1) Make extra sure, everything important is flushed
- // 2) Use TerminateProcess () to kill all threads
- // Alternatives: Use system ("taskkill ..."), but this command was not introduced before WinXP
- app.flush();
- app.processEvents();
- _flushall ();
-
- TerminateProcess (GetCurrentProcess (), 0);
-#endif
return status;
}
More information about the rkward-tracker
mailing list