Error: "During startup program exited with code 0xc0000005."
-
wrote on 26 Sept 2011, 09:56 last edited by
Hey,
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?
Thanks,
D.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;
@ -
wrote on 26 Sept 2011, 10:03 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. -
wrote on 27 Sept 2011, 13:10 last edited by
Hey,
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...
-
wrote on 27 Sept 2011, 13:44 last edited by
Are you absolutely sure that you do not mix different versions of the libraries (for example debug / release)?
-
wrote on 20 Oct 2011, 03:54 last edited by
Hi there,
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:
http://www.qtcentre.org/threads/44540-qt-4.7.4-linking-error-missing-enable-auto-importWorked for me. Hope it helps.
-
wrote on 3 Jun 2013, 10:58 last edited by
Hi,
in order to solve this issue you have to add this line to .pro file:QMAKE_LFLAGS= -enable-auto-import -WI
Francesco
-
wrote on 5 Jun 2013, 09:10 last edited by
Similar post here: "http://qt-project.org/forums/viewthread/1173":http://qt-project.org/forums/viewthread/1173 with resolved issue
Hope this helps
Kind Regards