[SOLVED] QCoreApplication exited with code -1073741510
I am getting the error exited with code -1073741510 with all console applications even the one with just QCoreApplication and the event loop, i.e.:
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
The error occurs after closing the window or using CTRL+C. Outputting to Qt Creator "hangs" the application with no other way than killing the process to end it. Running Qt Creator as administrator also has no effect. GUI applications based on QApplication exit normally with code 0 however.
I am using:
Qt 5.2.0 with Qt Creator 3.0.0 32-bit and MingW 4.8 32-bit (all 'fresh out of the box') in Windows 8.1 64-bit.
Thank you for your help!
-1073741510 => 0xC000013A: The application terminated as a result of a CTRL+C
Sounds like a perfectly reasonable response to being closed by Ctrl-C (or terminated unceremoniously by having the console pull from under it).
Your program "hangs" because you have told it to. By calling QCoreApplication::exec() you enter a Qt event loop. That loop continues until QCoreApplication::exit() is called somewhere in your program. Your program provides no such mechanism.