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. Program developed with Qt crashes at startup on some Windows machines?
Forum Updated to NodeBB v4.3 + New Features

Program developed with Qt crashes at startup on some Windows machines?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 651 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.
  • CAD_codingC Offline
    CAD_codingC Offline
    CAD_coding
    wrote on last edited by CAD_coding
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      Sounds like a usual Windows deployment problem. Go through the list:

      • make sure you run Dependency Walker on the problematic machine and in profile mode, not just a static preview.
      • confirm that you're not mixing debug and release dlls
      • confirm that you're not mixing dll versions (happens often when you update to new version), you can check the version in the property page of your dlls
      • confirm that you're deploying compiler specific runtime dlls (some computers might have them already installed by other software which would explain your symptoms)
      • confirm that the plugins are not placed in plugins subdirectory (common mistake)
      • make sure there's no Qt in the PATH environment variable on neither your nor the problematic machine
      • if you can, post here a file listing or a screenshot of your deployment folder
      CAD_codingC 1 Reply Last reply
      0
      • Chris KawaC Chris Kawa

        Sounds like a usual Windows deployment problem. Go through the list:

        • make sure you run Dependency Walker on the problematic machine and in profile mode, not just a static preview.
        • confirm that you're not mixing debug and release dlls
        • confirm that you're not mixing dll versions (happens often when you update to new version), you can check the version in the property page of your dlls
        • confirm that you're deploying compiler specific runtime dlls (some computers might have them already installed by other software which would explain your symptoms)
        • confirm that the plugins are not placed in plugins subdirectory (common mistake)
        • make sure there's no Qt in the PATH environment variable on neither your nor the problematic machine
        • if you can, post here a file listing or a screenshot of your deployment folder
        CAD_codingC Offline
        CAD_codingC Offline
        CAD_coding
        wrote on last edited by CAD_coding
        #3

        @Chris-Kawa Thank you very much for replying!
        I was unable to attach an image so typing the folder structure here:

        C:\Program Files\MyApp\bin\libgcc_s_seh-1.dll
        C:\Program Files\MyApp\bin\libstdc++-6.dll
        C:\Program Files\MyApp\bin\libwinpthread-1.dll
        C:\Program Files\MyApp\bin\Qt5Core.dll
        C:\Program Files\MyApp\bin\Qt5Gui.dll
        C:\Program Files\MyApp\bin\Qt5Network.dll
        C:\Program Files\MyApp\bin\Qt5Widgets.dll
        C:\Program Files\MyApp\bin\MyApp.exe
        C:\Program Files\MyApp\bin\platforms\qwindows.dll

        I will try to use dependency walker on one of the affected computers later today, as I do not have access right now.

        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