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

[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.9k 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
    #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
                                  • HamedH Offline
                                    HamedH Offline
                                    Hamed
                                    wrote on last edited by JKSH
                                    #21
                                    1. root .pro :
                                    TEMPLATE = subdirs
                                    
                                    SUBDIRS += \
                                        Planner \
                                        MapGraphics
                                    Planner.depends += MapGraphics
                                    

                                    2.mapgraphics .pro :

                                    #-------------------------------------------------
                                    #
                                    # Project created by QtCreator 2012-03-03T10:50:47
                                    #
                                    #-------------------------------------------------
                                    
                                    QT       += network sql
                                    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                                    
                                    TARGET = MapGraphics
                                    TEMPLATE = lib
                                    
                                    DEFINES += MAPGRAPHICS_LIBRARY
                                    
                                    INCLUDEPATH += .
                                    
                                    SOURCES += MapGraphicsScene.cpp \
                                        MapGraphicsObject.cpp \
                                        MapGraphicsView.cpp \
                                        guts/PrivateQGraphicsScene.cpp \
                                        guts/PrivateQGraphicsObject.cpp \
                                        guts/Conversions.cpp \
                                        MapTileSource.cpp \
                                        tileSources/GridTileSource.cpp \
                                        guts/MapTileGraphicsObject.cpp \
                                        guts/PrivateQGraphicsView.cpp \
                                        tileSources/OSMTileSource.cpp \
                                        guts/MapGraphicsNetwork.cpp \
                                        tileSources/CompositeTileSource.cpp \
                                        guts/MapTileLayerListModel.cpp \
                                        guts/MapTileSourceDelegate.cpp \
                                        guts/CompositeTileSourceConfigurationWidget.cpp \
                                        CircleObject.cpp \
                                        guts/PrivateQGraphicsInfoSource.cpp \
                                        PolygonObject.cpp \
                                        Position.cpp \
                                        LineObject.cpp \
                                        PlaneObject.cpp
                                    
                                    HEADERS += MapGraphicsScene.h\
                                            MapGraphics_global.h \
                                        MapGraphicsObject.h \
                                        MapGraphicsView.h \
                                        guts/PrivateQGraphicsScene.h \
                                        guts/PrivateQGraphicsObject.h \
                                        guts/Conversions.h \
                                        MapTileSource.h \
                                        tileSources/GridTileSource.h \
                                        guts/MapTileGraphicsObject.h \
                                        guts/PrivateQGraphicsView.h \
                                        tileSources/OSMTileSource.h \
                                        guts/MapGraphicsNetwork.h \
                                        tileSources/CompositeTileSource.h \
                                        guts/MapTileLayerListModel.h \
                                        guts/MapTileSourceDelegate.h \
                                        guts/CompositeTileSourceConfigurationWidget.h \
                                        CircleObject.h \
                                        guts/PrivateQGraphicsInfoSource.h \
                                        PolygonObject.h \
                                        Position.h \
                                        LineObject.h \
                                        PlaneObject.h
                                    
                                    symbian {
                                        MMP_RULES += EXPORTUNFROZEN
                                        TARGET.UID3 = 0xE4F7F973
                                        TARGET.CAPABILITY =
                                        TARGET.EPOCALLOWDLLDATA = 1
                                        addFiles.sources = MapGraphics.dll
                                        addFiles.path = !:/sys/bin
                                        DEPLOYMENT += addFiles
                                    }
                                    
                                    unix:!symbian {
                                        maemo5 {
                                            target.path = /opt/usr/lib
                                        } else {
                                            target.path = /usr/lib
                                        }
                                        INSTALLS += target
                                    }
                                    
                                    FORMS += \
                                        guts/CompositeTileSourceConfigurationWidget.ui
                                    
                                    RESOURCES += \
                                        resources.qrc
                                    
                                    1. planner .pro file :
                                    #-------------------------------------------------
                                    #
                                    # Project created by QtCreator 2015-03-01T12:21:14
                                    #
                                    #-------------------------------------------------
                                    
                                    QT       += core gui serialport
                                    QT       += core gui opengl
                                    QT       += core gui network sql
                                    
                                    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                                    
                                    TARGET = Planner
                                    TEMPLATE = app
                                    
                                    #LIBS += -lGLU
                                    #LIBS += -lSDL
                                    
                                    CONFIG += debug_and_release
                                    
                                    
                                    SOURCES += main.cpp\
                                            Mainwindow.cpp \
                                        readerthread.cpp \
                                        plane3d.cpp \
                                        clicklabel.cpp \
                                        chart.cpp \
                                        ahrsscene.cpp \
                                        mavlinkcrc.cpp
                                    
                                    HEADERS  += Mainwindow.h \
                                        readerthread.h \
                                        plane3d.h \
                                        clicklabel.h \
                                        chart.h \
                                        ahrsscene.h \
                                        ../ardupilotmega/mavlink.h \
                                        ../MAVLink/dowranpilot/mavlink.h \
                                        mavlinkcrc.h \
                                        ../MAVLink/mavlink_types.h
                                    
                                    FORMS    += \
                                        MainWindow.ui
                                    
                                    
                                    #Linkage for MapGraphics shared library
                                    win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../MapGraphics/release/ -lMapGraphics
                                    else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../MapGraphics/debug/ -lMapGraphics
                                    else:unix:!symbian: LIBS += -L$$OUT_PWD/../MapGraphics/ -lMapGraphics
                                    
                                    INCLUDEPATH += $$PWD/../MapGraphics
                                    DEPENDPATH += $$PWD/../MapGraphics
                                    
                                    RESOURCES = mresources.qrc

                                    HamedBabaeyan@yahoo.com
                                    for more interesting stuff

                                    1 Reply Last reply
                                    0
                                    • JKSHJ Offline
                                      JKSHJ Offline
                                      JKSH
                                      Moderators
                                      wrote on last edited by
                                      #22
                                      1. Did you copy the Debug build or Release build of MapGraphics.dll?
                                      2. Did you build a Debug build or Release build of your Planner app?

                                      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
                                        #23

                                        I didn't build them seprately. I build root project in release mode.

                                        HamedBabaeyan@yahoo.com
                                        for more interesting stuff

                                        JKSHJ 1 Reply Last reply
                                        0
                                        • HamedH Hamed

                                          I didn't build them seprately. I build root project in release mode.

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

                                          @Hamed said:

                                          I didn't build them seprately. I build root project in release mode.

                                          Yes, but MapGraphics.dll is built in a different folder from Planner.exe. Did you copy debug\MapGraphics.dll or release\MapGraphics.dll? Make sure you copied the release version, and not the debug version.

                                          Anyway, before continuing this path, I want to check: Are you able to run TestApp.exe outside of Qt Creator?

                                          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