Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]The program has unexpectedly finished ...exited with code -1073741511
I'm starting to use Qt Creator and I've followed the tutorial "Getting Started Programming with Qt Widgets":http://qt-project.org/doc/qt-5.0/qtdoc/gettingstartedqt.html and I'm having this problem;
The program has unexpectedly finished.
C:\Malagon\QtProjs\Cards-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\debug\Cards.exe exited with code -1073741511
The code compiles without any problem or error but when I hit the "RUN" button I get the previously mentioned error. What's wrong? I did everything the tutorial says but I don't know what's happening.
mcosta last edited by
Probably you have problem on DLL loading.
You can Use "Dependency Walker":http://www.dependencywalker.com/ to discover you EXE dependency and verify if all libraries nedded are found in PATH.
Also check if you have multiple version of MinGW installed.
[quote author="mcosta" date="1364491912"]Also check if you have multiple version of MinGW installed.
Thak you for answering.
Ahhh yes, I have multiple versions of MinGW intalled. I have one that I installed from MinGW site and the one Qt Creator installed. Do you think that's the problem?
It might be, you could be using code compiled with one and dll compiled with the other and they won't go along.
That was the problem the double MinGW installation, I uninstalled the MinGW that I had before installing Qt Creator and that solved the problem.
How do I mark this thread as solved?
Simply update the thread's title and add [solved] to it :)
bulx last edited by
In case somebody is tearing out hair on this: I also found that the same error came up when my code has super-big array. Reducing the size of the array made the error go away.