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. [SOLVED] The application was unable to start correctly (0xc000007b)

[SOLVED] The application was unable to start correctly (0xc000007b)

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 26.5k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mako-Wish
    wrote on last edited by
    #1

    I am a total C++ n00b, but I created an app that runs successfully from Qt Creator. When I try to deploy a release version of the app, it would not run. I followed the steps here:

    http://qt-project.org/wiki/Deploy_an_Application_on_Windows

    But I am getting an error "The application was unable to start correctly (0xc000007b). Click OK to close the application." The above link said if the steps there do not work, post in the forum, so here I am. :-)

    I would appreciate any help! Thank you in advance!

    1 Reply Last reply
    1
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt DevNet!

      Congratulations on successfully building and running your app in Qt Creator :)

      Error 0xc000007b is commonly caused by mixing up 32-bit and 64-bit libraries. The first thing to check is: Did you copy the Visual Studio runtimes (msvcp120.dll/msvcr120.dll)? If so, do they have the same bit-ness as your app?

      If that didn't help, let's start with some simple diagnostics:

      You followed the guide to deploy your application to a target PC. Is this the same PC as the one where your program ran successfully in Qt Creator?

      What version of Windows are running? It is 32-bit or 64-bit?

      Which version of Qt are did you use? (Version number + bitness + compiler + OpenGL-or-not)

      Did you use QML in your application?

      Which folder(s) did you take the DLLs from? (Please give the absolute path of the folders in your PC)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      jinsonkvJ 1 Reply Last reply
      1
      • M Offline
        M Offline
        Mako-Wish
        wrote on last edited by
        #3

        Thank you for the reply JKSH. Based on what you said, I looked at what I had done. I realized I had compiled using MSVC 64-bit, and then I followed the directions in the link literally. That put 32-bit MingW dependencies in. I changed to MSVC 32, compiled a release version, then copied the necessary files and folders from "C:\Qt\5.3\msvc2013" which is the 32-bit. It runs fine now. Thank you again! You got me in the right direction! Time to clean up. :-)

        1 Reply Last reply
        1
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          You're welcome! Happy coding :)

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • JKSHJ JKSH

            Hi, and welcome to the Qt DevNet!

            Congratulations on successfully building and running your app in Qt Creator :)

            Error 0xc000007b is commonly caused by mixing up 32-bit and 64-bit libraries. The first thing to check is: Did you copy the Visual Studio runtimes (msvcp120.dll/msvcr120.dll)? If so, do they have the same bit-ness as your app?

            If that didn't help, let's start with some simple diagnostics:

            You followed the guide to deploy your application to a target PC. Is this the same PC as the one where your program ran successfully in Qt Creator?

            What version of Windows are running? It is 32-bit or 64-bit?

            Which version of Qt are did you use? (Version number + bitness + compiler + OpenGL-or-not)

            Did you use QML in your application?

            Which folder(s) did you take the DLLs from? (Please give the absolute path of the folders in your PC)

            jinsonkvJ Offline
            jinsonkvJ Offline
            jinsonkv
            wrote on last edited by
            #5

            @JKSH Hi, You are absolutely right that "Error 0xc000007b is commonly caused by mixing up 32-bit and 64-bit libraries. " The best solution is to reinstall Visual C++. But there are some other fixes tool.

            I found that Error 0xc000007b can also solved by re installing DirectX and .Net framework.

            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