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. QCoreApplication or QApplication calls are hanging the executable

QCoreApplication or QApplication calls are hanging the executable

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 673 Views 3 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.
  • F Offline
    F Offline
    FrankE
    wrote on last edited by
    #1

    I call them to set library paths ( QApplication::setLibraryPaths(QStringList() << rootPath << pluginsPath); ) ant it seems to work perfectly... but in a couple of computers.

    Also, it is even weirder since it only happens since I've updated to 5.14.4 in previous versions (5.3.2) it was working flawlessly in any computer, obviously I've provided the required dependencies like the updated Qt5Core.dll and so.

    I'm totally running out of ideas so any tip is really welcome!

    jsulmJ 1 Reply Last reply
    0
    • F FrankE

      I call them to set library paths ( QApplication::setLibraryPaths(QStringList() << rootPath << pluginsPath); ) ant it seems to work perfectly... but in a couple of computers.

      Also, it is even weirder since it only happens since I've updated to 5.14.4 in previous versions (5.3.2) it was working flawlessly in any computer, obviously I've provided the required dependencies like the updated Qt5Core.dll and so.

      I'm totally running out of ideas so any tip is really welcome!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @FrankE Did you try to debug to see where it hangs?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • jsulmJ jsulm

        @FrankE Did you try to debug to see where it hangs?

        F Offline
        F Offline
        FrankE
        wrote on last edited by
        #3

        @jsulm Unfortunately I cannot replicate it on my computers (4) also I sent it to other people and it works ok but in two computers, that is making even hard to catch the error.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FrankE
          wrote on last edited by FrankE
          #4

          It still happens even using Qt deploy tool, also Microsoft Process Monitor (procmon) didn't showcased any problem.

          btw my code is as simple as

          #include "mainwindow.h"
          
          #include <QApplication>
          
          int main(int argc, char *argv[])
          {
              QApplication a(argc, argv);
              MainWindow w;
              w.show();
              return a.exec();
          }
          

          being MainWindow a default window, but the software gets freezed on the QApplication.

          1 Reply Last reply
          0
          • fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by
            #5

            I ran into "weird errors" when the deploy tool didn't match the exact version of the qt version used to compile against. I assume you did a clean before compiling against 5.14.4? How do you run your deploy tool? Command line environment matching version 5.14.4?

            C++ is a perfectly valid school of magic.

            F 1 Reply Last reply
            1
            • fcarneyF fcarney

              I ran into "weird errors" when the deploy tool didn't match the exact version of the qt version used to compile against. I assume you did a clean before compiling against 5.14.4? How do you run your deploy tool? Command line environment matching version 5.14.4?

              F Offline
              F Offline
              FrankE
              wrote on last edited by
              #6

              @fcarney As I said it works ok in almost every computer, also I double checked the version of the Qt dlls and it was ok.

              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