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. QT5.5 : Application Runtime Error (application has requested the runtime to terminate)

QT5.5 : Application Runtime Error (application has requested the runtime to terminate)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.5runtimeerrorvisual c++
14 Posts 3 Posters 7.4k 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.
  • karan.kapoorK Offline
    karan.kapoorK Offline
    karan.kapoor
    wrote on last edited by
    #1

    Hi All,

    I have built a Desktop application using QT5.5. My build went completely fine but on running the generated .exe file, I am getting the following error:

    Microsoft Visual C++ Runtime Library
    "this application has requested the runtime to terminate it in an unusual way. Please contact applications Support Team"

    My build folder includes all the required .dll file
    Qt5cored.dll
    Qwindow.dll
    Qminimal.dll
    libgcc_s_dw2-1.dll
    libstdc++-6.dll
    etc.

    But none of these things work and I am still getting the above mentioned error. Would appreciate any help.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi and welcome
      You seems to have mixed DEBUG and non debug
      t5cored.dll << notice the D. its for debug mode.
      But the rest of you DLLS seems not to be debug ?

      So is this a debug build or release build?

      You can see here what DLLS are needed
      http://www.tripleboot.org/?p=138
      Notice the VS runtime dlls.

      karan.kapoorK 1 Reply Last reply
      0
      • mrjjM mrjj

        hi and welcome
        You seems to have mixed DEBUG and non debug
        t5cored.dll << notice the D. its for debug mode.
        But the rest of you DLLS seems not to be debug ?

        So is this a debug build or release build?

        You can see here what DLLS are needed
        http://www.tripleboot.org/?p=138
        Notice the VS runtime dlls.

        karan.kapoorK Offline
        karan.kapoorK Offline
        karan.kapoor
        wrote on last edited by
        #3

        @mrjj : Thanks for response.
        It's a debug build. If I do not include Qt5cored.dll then it gives me an error saying "Qt5cored.dll is missing".
        Since I am using a MinGW 32 bit compiler, all the file listed in the above link are already present in my debug folder.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          ok but if debug build. ALL files should end with D !
          like
          "C:\Qt\Qt5.5.0\5.5\mingw492_32\plugins\platforms\qminimald.dll"

          and they should come from ur compiler folder.

          so my best guess is that your dlls are wrong.

          karan.kapoorK 1 Reply Last reply
          0
          • mrjjM mrjj

            ok but if debug build. ALL files should end with D !
            like
            "C:\Qt\Qt5.5.0\5.5\mingw492_32\plugins\platforms\qminimald.dll"

            and they should come from ur compiler folder.

            so my best guess is that your dlls are wrong.

            karan.kapoorK Offline
            karan.kapoorK Offline
            karan.kapoor
            wrote on last edited by
            #5

            @mrjj Sorry, I forgot to write D in the end with Qminimal and Qwindow in my main post.
            I have all .dll files with D in end.

            mrjjM 1 Reply Last reply
            0
            • karan.kapoorK karan.kapoor

              @mrjj Sorry, I forgot to write D in the end with Qminimal and Qwindow in my main post.
              I have all .dll files with D in end.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @karan.kapoor

              Ok. if u are VERY sure DLLS are correct.
              Then maybe for some reason it finds others. (in other folder)
              Try to use
              http://www.dependencywalker.com/
              to see what it loads.
              or the fast test.
              rename the Qt folder so it cannot get anything from there and run the exe again.

              karan.kapoorK 1 Reply Last reply
              0
              • mrjjM mrjj

                @karan.kapoor

                Ok. if u are VERY sure DLLS are correct.
                Then maybe for some reason it finds others. (in other folder)
                Try to use
                http://www.dependencywalker.com/
                to see what it loads.
                or the fast test.
                rename the Qt folder so it cannot get anything from there and run the exe again.

                karan.kapoorK Offline
                karan.kapoorK Offline
                karan.kapoor
                wrote on last edited by
                #7

                @mrjj Just examined my .exe file by changing name of QT and also without changing the name. It is somehow not entering the following path to access the Qwindow files:
                C:\Qt\5.5\mingw492_32\plugins\platforms

                mrjjM 1 Reply Last reply
                0
                • karan.kapoorK karan.kapoor

                  @mrjj Just examined my .exe file by changing name of QT and also without changing the name. It is somehow not entering the following path to access the Qwindow files:
                  C:\Qt\5.5\mingw492_32\plugins\platforms

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @karan.kapoor
                  but
                  platforms folder should be in ur folder!

                  karan.kapoorK 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @karan.kapoor
                    but
                    platforms folder should be in ur folder!

                    karan.kapoorK Offline
                    karan.kapoorK Offline
                    karan.kapoor
                    wrote on last edited by
                    #9

                    @mrjj That was a mistake I did not keeping Platforms folder in with my debug folder. I did that now (C:\Users\KapoorK\Desktop\build-qIMS_bb-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\platforms).

                    But as per dependency walker, on examining my .exe file, it is no where accessing qwindowd.dll and others in platform folder.

                    1 Reply Last reply
                    0
                    • mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      ok so it can still not start ?

                      karan.kapoorK 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        ok so it can still not start ?

                        karan.kapoorK Offline
                        karan.kapoorK Offline
                        karan.kapoor
                        wrote on last edited by
                        #11

                        @mrjj
                        Nopes. Still same error.

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

                          cant explain.
                          sorry.
                          maybe try a release build and the list from
                          http://www.tripleboot.org/?p=138

                          karan.kapoorK 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            cant explain.
                            sorry.
                            maybe try a release build and the list from
                            http://www.tripleboot.org/?p=138

                            karan.kapoorK Offline
                            karan.kapoorK Offline
                            karan.kapoor
                            wrote on last edited by
                            #13

                            @mrjj No problem. Thanks for your time and effort.

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

                              Hi and welcome to devnet,

                              One thing you can use is the windeployqt helper program. It should setup your Qt dependencies correctly for your application to start.

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

                              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