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. Application crash when it run with Qt creator but works after "deploy"
Forum Updated to NodeBB v4.3 + New Features

Application crash when it run with Qt creator but works after "deploy"

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 4 Posters 7.6k 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.
  • H Offline
    H Offline
    helenebro
    wrote on last edited by
    #5

    Yes, if I copy .dll next to .exe, it still not working

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

      Just to be sure we are on the same line:

      1. You build your application
      2. You copy the DLL in the build folder
      3. You call run from Qt Creator
      4. Crash ?

      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
      • H Offline
        H Offline
        helenebro
        wrote on last edited by
        #7

        Yes.
        On the other side, if I copy .exe on folder with hidapi.dll and other dll of Qt (as I deploy). I can execute the application without crash.

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

          Strange… Does hidapi.dll have any dependency ?

          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
          • H Offline
            H Offline
            helenebro
            wrote on last edited by
            #9

            no, I don't think.
            And when I copy .dll on "deploy folder" I don't added anything except hidapi.dll and Qt dll

            1 Reply Last reply
            0
            • H Offline
              H Offline
              helenebro
              wrote on last edited by helenebro
              #10

              I found the problem. The difference between "deploy" folder and project folder is : msvcr120d.dll. If I add this dll on project folder, it works.
              Thank you for your help

              raven-worxR 1 Reply Last reply
              0
              • H helenebro

                I found the problem. The difference between "deploy" folder and project folder is : msvcr120d.dll. If I add this dll on project folder, it works.
                Thank you for your help

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by raven-worx
                #11

                @helenebro
                actually the msvc runtime binaries should also be available system wide (e.g. contained in the PATH), so something went wrong during installation. Or do you have altered the environment variables in the QtCreator project settings?

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  helenebro
                  wrote on last edited by
                  #12

                  I don't know if it's a installation problem but I don't found msvrc120d.dll on C:/Windows/System32 or on C:/Windows/SysWOW64.

                  1 Reply Last reply
                  0
                  • hskoglundH Online
                    hskoglundH Online
                    hskoglund
                    wrote on last edited by
                    #13

                    Hi, msvcr120dl.dll usually you will only obtain by installing Microsoft Visual Studio 2013. Because it's the debug flavor of the normal msvcr120.dll, and that dll is much more easy to find.
                    Try building your app in Release mode, then you might get rid of your dependency on msvcr120d.dll.

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      helenebro
                      wrote on last edited by
                      #14

                      If I build my app in Release mode I have the problem if msvcr120d.dll on my folder. I think it's because library hidapi is build with visual studio.

                      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