Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Error: "During startup program exited with code 0xc0000005."
Donner last edited by
I reinstalled Windows 7 (64 bit) on my computer and also installed the newest version of QtSDK.
When I imported my project I'm currently working on (from svn), it would compile without any problems.
But when I start the compiled application, it gives me the following error message:
"During startup program exited with code 0xc0000005."
Now, this happens when I start it from QtCreator as well as when I start the exe using the windows exlorer.
The Project uses two external libraries, which were both built using the same QtSDK.
After searching a little, I found out that this error code often has something to do with DLLs, so I made sure all the needed DLLs are in the application's directory, which didn't change anything. I played around with the path-variable, adding the mingw-bin-folder and qt-bin-folder, but the error still shows up. Also when I completely remove all paths that have to do with qt or mingw from the PATH variable, it doesn't change anything.
Now here comes the weird part:
-When I create a new project, including the two libraries i used and building in one command from both libraries, it works fine. So the libraries (and thus their DLLs) seem to work fine.
-With the original project, I commented out everything from the main()-function, so it doesn't do anything - still the error occurs.
-I can get rid of the error by commenting out the complete content of the main()-Function AND removig ALL the Source-Files from the Project (except the main.cpp) - then the program starts fine, it just doesn't do anything obviously. As soon as I add those source files again, althoug everything in main.cpp is still commented out, it crashes again.
-I can't use the debugger, because no matter where i set the breakpoint, the error shows up before any breakpoint is being reached.
Now, I really don't know what to do anymore. What could the reason for this error be? What else could I try?
PS: This is the content of my PATH variable (I also tried to remove the last to entries (thought it might have something to do with tortoise svn?), but it didn't change anything:
@C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\TortoiseSVN\bin;C:\Programme\QtSDK1_1_3\mingw\bin;
ludde last edited by
Not sure this helps, but if the error code you see is a Windows error code, it means "Access is denied".
So it could have something to do with file access rights.
Donner last edited by
thanks for your reply!
The problem is, that I don't know how to detect where exactly the access violation happens as it happens before the application actually starts and any of my code gets executed...
lgeyer last edited by
Are you absolutely sure that you do not mix different versions of the libraries (for example debug / release)?
captainst last edited by
Watch the "link" output from compile output and check if you get a warning on "-enable-auto-import".
If this is the case, then this link might resolve your problem:
Worked for me. Hope it helps.
f.cambria last edited by
in order to solve this issue you have to add this line to .pro file:
QMAKE_LFLAGS= -enable-auto-import -WI
bjanuario last edited by
Hope this helps