Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error: "During startup program exited with code 0xc0000005."
QtWS25 Last Chance

Error: "During startup program exited with code 0xc0000005."

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 6 Posters 18.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Donner
    wrote on last edited by
    #1

    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;
    @

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Donner
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          Are you absolutely sure that you do not mix different versions of the libraries (for example debug / release)?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            captainst
            wrote on last edited by
            #5

            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-import

            Worked for me. Hope it helps.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              f.cambria
              wrote on last edited by
              #6

              Hi,
              in order to solve this issue you have to add this line to .pro file:

              QMAKE_LFLAGS= -enable-auto-import -WI

              Francesco

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bjanuario
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved