Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QNetworkAccessManager crashes only in install version
Forum Updated to NodeBB v4.3 + New Features

QNetworkAccessManager crashes only in install version

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 1.3k Views 1 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.
  • M Offline
    M Offline
    MrMallIronmaker
    wrote on last edited by
    #1

    Hello there,

    Simply put, the application I am building crashes when it tries to instantiate a QNetworkAccessManager. The application works fine in both the debug and release version of the software using QtCreator, and even running the .exe's right from the build directory. However, as soon as the package is bundled (with Inno Setup, if it matters) and installed into a different directory on my computer, the QNetworkAccessManager becomes an issue.

    I copied over the "bearer" folder to my application directory as suggested by "this thread":http://qt-project.org/forums/viewthread/51074 that linked to "Deploy an Application on Windows":http://qt-project.org/wiki/Deploy_an_Application_on_Windows but nothing changed.

    My project file contains QT += network, the DLL Qt5Network.dll is in the application directory.

    If the code context is necessary, I can post it, but I presume it's an issue with something I forgot to include in the installer.

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

      Hi and welcome to devnet,

      Maybe a silly question but are you compiling your application in release mode ?

      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
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        your application starts up as expected?
        You know that it crashes when QNetworkAccessManager is instantiated. Are you connected with a debugger?
        Maybe you have copied over the wrong Qt dlls which you haven't linked against (e.g. different Qt version)?

        --- 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
        • M Offline
          M Offline
          MrMallIronmaker
          wrote on last edited by
          #4

          @SGaist: Silly questions are usually the right ones to ask! But yes, the application that fails to run was compiled with release mode.

          @raven-worx: Yes, it does start up as expected, and the rest of it works absolutely fine.
          I am not connected to a debugger; instead I hacked together a logging system that opens, writes, and closes a file. The last line written is from right before "new QNetworkManager" and the first line missing is the line right after.
          I'm pretty sure I have only one Qt version, but it's always good to check. How do I check what application is linking against?

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

            Again a silly question, but, did you check that you have the correct plugins folder name ?

            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

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved