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]this application requested the runtime to terminate it in an unusual way
Forum Updated to NodeBB v4.3 + New Features

[solved]this application requested the runtime to terminate it in an unusual way

Scheduled Pinned Locked Moved General and Desktop
38 Posts 4 Posters 16.4k Views 2 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.
  • HamedH Offline
    HamedH Offline
    Hamed
    wrote on last edited by Hamed
    #1

    hi
    I'm trying to run an executable file of a qt based application but I get this error :
    this application requested the runtime to terminate it in an unusual way
    I know this is the same topic with this one :
    https://forum.qt.io/topic/24553/this-application-has-requested-the-runtime-to-terminate-it-in-an-unusual-way
    but I did everything that they said in that topic and still I getting this error. I'm using qt 5.4.1 mingw with window 7 64bit
    thank you

    HamedBabaeyan@yahoo.com
    for more interesting stuff

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sam
      wrote on last edited by
      #2

      Hi,

      You can use Dependency walker to check if the application is missing any dlls to be copied at the exe path/folder.

      Regards
      Sam

      1 Reply Last reply
      1
      • HamedH Offline
        HamedH Offline
        Hamed
        wrote on last edited by
        #3

        dear @Sam
        I used that application and copied all the dlls that I need and error doesn't say missing dll I can't find why this error happens!

        HamedBabaeyan@yahoo.com
        for more interesting stuff

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

          Hi,

          @Hamed said:

          this application requested the runtime to terminate it in an unusual way

          This is a very generic message that means "your program crashed". There are many possible reasons. To find out what caused the crash, use a Debugger.

          Can you run your program from inside Qt Creator?

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

          1 Reply Last reply
          1
          • HamedH Offline
            HamedH Offline
            Hamed
            wrote on last edited by
            #5

            @JKSH
            yes it works properly in both debug and release mode. how can it crashes by running .exe file?

            HamedBabaeyan@yahoo.com
            for more interesting stuff

            JKSHJ 1 Reply Last reply
            0
            • S Offline
              S Offline
              Sam
              wrote on last edited by
              #6

              Did you try this

              1 Reply Last reply
              1
              • HamedH Offline
                HamedH Offline
                Hamed
                wrote on last edited by
                #7

                @Sam
                you mean that youtube video?
                yes I already tried that one. nothing changed!

                HamedBabaeyan@yahoo.com
                for more interesting stuff

                1 Reply Last reply
                0
                • HamedH Hamed

                  @JKSH
                  yes it works properly in both debug and release mode. how can it crashes by running .exe file?

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  @Hamed said:

                  @JKSH
                  yes it works properly in both debug and release mode. how can it crashes by running .exe file?

                  If it runs correctly in Qt Creator but crashes when you open the .exe file, that means you haven't deployed your application correctly. Follow the instructions at http://wiki.qt.io/Deploy_an_Application_on_Windows carefully.

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

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    Sam
                    wrote on last edited by Sam
                    #9

                    @Hamed

                    There is a link in the search results where they discuss

                    under Windows Search Properties>Recovery>"Restart service after:" somehow was changed from 0 to 1. I changed it back to 0 and everything is now back to normal.

                    I agree with @JKSH

                    JKSHJ 1 Reply Last reply
                    1
                    • S Sam

                      @Hamed

                      There is a link in the search results where they discuss

                      under Windows Search Properties>Recovery>"Restart service after:" somehow was changed from 0 to 1. I changed it back to 0 and everything is now back to normal.

                      I agree with @JKSH

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      Hi @Sam,

                      @Hamed

                      There is a link in the search results where they discuss

                      under Windows Search Properties>Recovery>"Restart service after:" somehow was changed from 0 to 1. I changed it back to 0 and everything is now back to normal.

                      The message "this application requested the runtime to terminate it in an unusual way" is extremely generic and broad. It can be caused by many different problems (e.g. missing DLLs, programming error, or something completely different) I highly doubt that link is related to @Hamed's problem, because his program already runs correctly in Qt Creator.

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

                      1 Reply Last reply
                      2
                      • HamedH Offline
                        HamedH Offline
                        Hamed
                        wrote on last edited by
                        #11

                        @JKSH
                        I don't think the problem is with deployment. I flowed instruction step by step.
                        here is my .exe file folder and the way I deploy files :

                        http://i60.tinypic.com/2po5dog.jpg

                        HamedBabaeyan@yahoo.com
                        for more interesting stuff

                        JKSHJ 1 Reply Last reply
                        0
                        • HamedH Offline
                          HamedH Offline
                          Hamed
                          wrote on last edited by
                          #12

                          @Sam
                          I read that topic and I don't think that is related to my case! problem should be somewhere else.

                          HamedBabaeyan@yahoo.com
                          for more interesting stuff

                          1 Reply Last reply
                          0
                          • HamedH Offline
                            HamedH Offline
                            Hamed
                            wrote on last edited by
                            #13

                            @JKSH
                            my deployment was wrong?

                            HamedBabaeyan@yahoo.com
                            for more interesting stuff

                            1 Reply Last reply
                            0
                            • HamedH Hamed

                              @JKSH
                              I don't think the problem is with deployment. I flowed instruction step by step.
                              here is my .exe file folder and the way I deploy files :

                              http://i60.tinypic.com/2po5dog.jpg

                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by
                              #14

                              @Hamed said:

                              @JKSH
                              I don't think the problem is with deployment. I flowed instruction step by step.
                              here is my .exe file folder and the way I deploy files :

                              http://i60.tinypic.com/2po5dog.jpg

                              1. What version of Qt did you use?
                              2. What compiler did you use?
                              3. What is MapGraphics.dll?
                              4. Why do you have both MSVC and MinGW DLLs in your folder?
                              5. Did you rename your Qt folder to something like C:\QtHidden\ ?
                              6. The wiki asked you to copy all DLLs from the <Qt>\bin\ folder. You don't have all of them.
                              7. You shouldn't need system DLLs (glu32.dll, kernel32.dll, opengl32.dll, shell32.dll)

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

                              1 Reply Last reply
                              1
                              • HamedH Offline
                                HamedH Offline
                                Hamed
                                wrote on last edited by Hamed
                                #15
                                1. Qt 5.4.1
                                2. mingw
                                3. this is map view costume library, It's needed
                                4. I copied just mingw dll and I faced this problem. in some topics I read you need msvc dll and I copied it and it's not changed anything as I expect!
                                5. No I thought renaming to QtHidden is for simulating your system with a system that don't have Qt! I have Qt and I have problem!
                                6. I copied the dlls that dependency walker told it's needed! should I copy all of them?
                                7. those dlls also recomended by dependency walker.
                                  suggest anything that you think might help me I will do that.

                                HamedBabaeyan@yahoo.com
                                for more interesting stuff

                                JKSHJ 1 Reply Last reply
                                0
                                • HamedH Hamed
                                  1. Qt 5.4.1
                                  2. mingw
                                  3. this is map view costume library, It's needed
                                  4. I copied just mingw dll and I faced this problem. in some topics I read you need msvc dll and I copied it and it's not changed anything as I expect!
                                  5. No I thought renaming to QtHidden is for simulating your system with a system that don't have Qt! I have Qt and I have problem!
                                  6. I copied the dlls that dependency walker told it's needed! should I copy all of them?
                                  7. those dlls also recomended by dependency walker.
                                    suggest anything that you think might help me I will do that.
                                  JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by JKSH
                                  #16

                                  @Hamed

                                  1. Ok
                                  2. Ok
                                  3. Where did you download this from? Did you build this DLL yourself?
                                  4. To clarify: Do you mean you copied the MinGW DLL and it crashed? (Also, remove the MSVC DLL)
                                  5. No, renaming it will temporarily "remove" Qt from your system PATH. Try it.
                                  6. Dependency Walker does not show all the required DLLs by default. Please follow the Wiki instructions, and copy all of them. If you don't, it's difficult to help you.
                                  7. Windows system DLLs can always be found. You don't need to copy them. Remove them from your folder.

                                  If it still doesn't work, please post:

                                  1. Your .pro file
                                  2. The full path to where you got your Qt DLLs from? (for example, "C:\Qt\5.2.1\mingw48_32\bin")
                                  3. Answers to my questions above

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

                                  1 Reply Last reply
                                  1
                                  • HamedH Offline
                                    HamedH Offline
                                    Hamed
                                    wrote on last edited by
                                    #17
                                    1. I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.
                                    2. no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.
                                    3. did it, Nothing changed
                                    4. did it, Nothing changed
                                    5. did it, Nothing changed :(

                                    1.how to post my .pro?
                                    2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin
                                    3.done

                                    HamedBabaeyan@yahoo.com
                                    for more interesting stuff

                                    JKSHJ 1 Reply Last reply
                                    0
                                    • HamedH Hamed
                                      1. I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.
                                      2. no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.
                                      3. did it, Nothing changed
                                      4. did it, Nothing changed
                                      5. did it, Nothing changed :(

                                      1.how to post my .pro?
                                      2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin
                                      3.done

                                      JKSHJ Offline
                                      JKSHJ Offline
                                      JKSH
                                      Moderators
                                      wrote on last edited by
                                      #18

                                      @Hamed said:

                                      1. I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.

                                      What's the github link?

                                      1. no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.

                                      I meant remove MSVC, not MinGW

                                      1. did it, Nothing changed
                                      2. did it, Nothing changed
                                      3. did it, Nothing changed :(

                                      :(

                                      1.how to post my .pro?

                                      Open it in Qt Creator. Copy the text in the file, and paste it here.

                                      2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin

                                      Ok, that's correct

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

                                      1 Reply Last reply
                                      1
                                      • HamedH Offline
                                        HamedH Offline
                                        Hamed
                                        wrote on last edited by
                                        #19
                                        1. github link : https://github.com/raptorswing/MapGraphics
                                        2. no, nothing changes when I delete msvc dll
                                        3. by .pro you mean my root project .pro or subdirs .pro s? I have two subdirs and both have .pro file

                                        HamedBabaeyan@yahoo.com
                                        for more interesting stuff

                                        JKSHJ 1 Reply Last reply
                                        0
                                        • HamedH Hamed
                                          1. github link : https://github.com/raptorswing/MapGraphics
                                          2. no, nothing changes when I delete msvc dll
                                          3. by .pro you mean my root project .pro or subdirs .pro s? I have two subdirs and both have .pro file
                                          JKSHJ Offline
                                          JKSHJ Offline
                                          JKSH
                                          Moderators
                                          wrote on last edited by
                                          #20

                                          @Hamed said:

                                          1. by .pro you mean my root project .pro or subdirs .pro s? I have two subdirs and both have .pro file

                                          Post all 3 of them

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

                                          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