Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] Microsoft Visual C++ Runtime Library says error
QtWS25 Last Chance

[solved] Microsoft Visual C++ Runtime Library says error

Scheduled Pinned Locked Moved General and Desktop
guiruntimedeploy
13 Posts 5 Posters 10.9k 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.
  • GiorgiG Offline
    GiorgiG Offline
    Giorgi
    wrote on last edited by Giorgi
    #1

    Hello,

    On widnows I compiled Release version of my Gui application and now I have someapp.exe file. i want to move it in another directory or in another computer. I added requested dlls but still I have runtime error:

    Microsoft Visual C++ Runtime Library says:
    the application has requested the runtime to terminate it in an unusual way. please contact the application's support team for more information.

    How to run? any ideas?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      HI,

      @Giorgi said:

      I added requested dlls but still I have runtime error:

      have you checked (for instance with DependencyWalker) if there're still missing libraries?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      GiorgiG 1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        to add @mcosta 's repsonse
        Implicitly one can read that you have tested and started your release application from your IDE (e.g. Qt creator). If not, you should do. In Qt creator you can start your app and it will/shall find the required dlls. If you have a crash already there, then you do not have dll problem, but a general coding problem.
        Also you have to pay attention from where you are taking the dlls. Depending on Qt creator version and Qt lib version the dlls are not always compatible. Make sure that you are using the Qt lib dll and not the ones used by Qt creator.

        Vote the answer(s) that helped you to solve your issue(s)

        GiorgiG 1 Reply Last reply
        0
        • M mcosta

          HI,

          @Giorgi said:

          I added requested dlls but still I have runtime error:

          have you checked (for instance with DependencyWalker) if there're still missing libraries?

          GiorgiG Offline
          GiorgiG Offline
          Giorgi
          wrote on last edited by
          #4

          @mcosta no but in DependencyWalker I got following error:

          Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
          Error: Modules with different CPU types were found.
          Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

          1 Reply Last reply
          0
          • K koahnig

            to add @mcosta 's repsonse
            Implicitly one can read that you have tested and started your release application from your IDE (e.g. Qt creator). If not, you should do. In Qt creator you can start your app and it will/shall find the required dlls. If you have a crash already there, then you do not have dll problem, but a general coding problem.
            Also you have to pay attention from where you are taking the dlls. Depending on Qt creator version and Qt lib version the dlls are not always compatible. Make sure that you are using the Qt lib dll and not the ones used by Qt creator.

            GiorgiG Offline
            GiorgiG Offline
            Giorgi
            wrote on last edited by
            #5

            @koahnig My Qt version is 5. yes it works from QT Creator. Then I moved **.exe ** file from release directory into C:\tests\ and copied requred dlls from qt installation directory\bin\ into C:\tests\. before it couldn't started but after I copied required libraries it started but with runtime error.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mcosta
              wrote on last edited by
              #6

              Something to check is if you have some dependencies with plugins.

              Read here how to handle properly the deployment of DLLs and plugins

              Once your problem is solved don't forget to:

              • Mark the thread as SOLVED using the Topic Tool menu
              • Vote up the answer(s) that helped you to solve the issue

              You can embed images using (http://imgur.com/) or (http://postimage.org/)

              GiorgiG 1 Reply Last reply
              2
              • M mcosta

                Something to check is if you have some dependencies with plugins.

                Read here how to handle properly the deployment of DLLs and plugins

                GiorgiG Offline
                GiorgiG Offline
                Giorgi
                wrote on last edited by
                #7

                @mcosta great link. I will check

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SysTech
                  wrote on last edited by
                  #8

                  I could be wrong but a problem like mentioned with CPU types could mean you are copying the wrong DLLs. It was confusing to me at first but there are duplicate (or rather similarly named) DLLs that service the Qt Creator and in my first attempt I was copying those rather than the ones from the compiler directory.

                  The other thing is you'll likely need the platforms directory and at minimum the windows platform support.

                  Basically for even a fairly simple program you need a lot of DLLs. My best advice is to use a product like VMWare Workstation or VirtualBox. Install a clean simple copy of the OS you plan to target. Move your application to this VM and work on adding DLLs, platforms, and plugins until it runs. When you can get it to run you've got what you need and you can zip that stuff up or create an installer from it.

                  I'm using the MS Visual C++ compiler (2013) and to get my app to run on a fresh install I needed some DLLS from the compiler as well.

                  1 Reply Last reply
                  1
                  • GiorgiG Offline
                    GiorgiG Offline
                    Giorgi
                    wrote on last edited by
                    #9

                    @SysTech thank you for reply but I found solution. I added platforms\qwindows.dll and libEGL.dll to my C:\tests\ directory and everything work fine. Link which gave me @mcosta helped me.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SysTech
                      wrote on last edited by SysTech
                      #10

                      Glad to hear it is solved. @mcosta has helped many people including myself. Don't forget to mark your post as solved!

                      GiorgiG 1 Reply Last reply
                      1
                      • S SysTech

                        Glad to hear it is solved. @mcosta has helped many people including myself. Don't forget to mark your post as solved!

                        GiorgiG Offline
                        GiorgiG Offline
                        Giorgi
                        wrote on last edited by
                        #11

                        @SysTech how mark my post as solved? I am new here and I don't know the rules... how Add [SOLVED] prefix to the thread title?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Hi,

                          If you don't have the option in the Topic Tools menu, just edit the thread title and prepend [solved]

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          GiorgiG 1 Reply Last reply
                          1
                          • SGaistS SGaist

                            Hi,

                            If you don't have the option in the Topic Tools menu, just edit the thread title and prepend [solved]

                            GiorgiG Offline
                            GiorgiG Offline
                            Giorgi
                            wrote on last edited by
                            #13

                            @SGaist ok. thanks

                            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