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. The program has unexpectedly finished

The program has unexpectedly finished

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 3.3k 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.
  • C Offline
    C Offline
    carlos789
    wrote on last edited by
    #1

    Hello:
    I am a new user QT in Windows.
    I want to take an example and learn from that example. But no matter what project you use, always get the error
    "The program has unexpectedly finished"
    I would greatly appreciate some help that will let me use QT
    regards
    Carlos789
    "Starting C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe...
    The program has unexpectedly finished.
    C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe crashed."

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

      Hi and welcome to devnet,

      Does it also happen with a default project generated with Qt Creator ?

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

      C 1 Reply Last reply
      0
      • C carlos789

        Hello:
        I am a new user QT in Windows.
        I want to take an example and learn from that example. But no matter what project you use, always get the error
        "The program has unexpectedly finished"
        I would greatly appreciate some help that will let me use QT
        regards
        Carlos789
        "Starting C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe...
        The program has unexpectedly finished.
        C:\microchip\mla\v2016_04_27\apps\usb\device\vendor_basic\utilities\libusb_cross_platform_example\build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug\windows\libusb_Demo.exe crashed."

        M Offline
        M Offline
        mjsurette
        wrote on last edited by
        #3

        @carlos789

        I find that running under the debugger is useful under these circumstances. It gives you an error message about the cause and a stack trace.

        Mike

        C 1 Reply Last reply
        0
        • M mjsurette

          @carlos789

          I find that running under the debugger is useful under these circumstances. It gives you an error message about the cause and a stack trace.

          Mike

          C Offline
          C Offline
          carlos789
          wrote on last edited by
          #4

          @mjsurette
          Hi:
          The text that have the "Compiler Output" when I run "Build Project", is attached.
          regards
          Carlos

          16:16:49: Running steps for project libusb_Demo...
          16:16:49: Configuration unchanged, skipping qmake step.
          16:16:49: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
          C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
          mingw32-make[1]: Entering directory 'C:/microchip/mla/v2016_04_27/apps/usb/device/vendor_basic/utilities/libusb_cross_platform_example/build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug'
          mingw32-make[1]: Nothing to be done for 'first'.
          mingw32-make[1]: Leaving directory 'C:/microchip/mla/v2016_04_27/apps/usb/device/vendor_basic/utilities/libusb_cross_platform_example/build-libusb_Demo-Desktop_Qt_5_7_0_MinGW_32bit-Debug'
          16:16:50: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
          16:16:50: Elapsed time: 00:01.

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi and welcome to devnet,

            Does it also happen with a default project generated with Qt Creator ?

            C Offline
            C Offline
            carlos789
            wrote on last edited by
            #5

            @SGaist said in The program has unexpectedly finished:

            Does it also happen with a default project generated with Qt Creator ?
            Hi:
            Yes, sure it is a beginner's mistake but I can not find the reason.
            regards
            Carlos

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

              You provided the build output. What would be interesting is the debugger backtrace when your application crashes.

              One thing you should check is that all the pointer you might be using are initialized and that you are not shadowing member variables in your constructors.

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

              C 1 Reply Last reply
              0
              • SGaistS SGaist

                You provided the build output. What would be interesting is the debugger backtrace when your application crashes.

                One thing you should check is that all the pointer you might be using are initialized and that you are not shadowing member variables in your constructors.

                C Offline
                C Offline
                carlos789
                wrote on last edited by
                #7

                @SGaist Hi:
                I get a pop up message telling me Executable error : During startup program exited with code 0xc0000139.
                It is indicative of something?
                Regards
                Carlos

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Hi that error probably means you have 2 versions of Qt or of MinGW installed, so when you try to start your program, the wrong one (the wrong .dll) gets chosen :-(

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    carlos789
                    wrote on last edited by
                    #9

                    Hi:
                    It is true, I have two versions of QT installed,
                    You recommend me ?. that
                    Uninstall everything and start again?
                    regards
                    Carlos

                    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