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. [SOLVED] My program crashes only when launched with QtCreator
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] My program crashes only when launched with QtCreator

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.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.
  • B Offline
    B Offline
    billconan
    wrote on last edited by
    #1

    hello,

    my old machine got really slow. I then reinstalled new os (win8.1) on a new ssd.

    after setting up Qt and everything, I noticed that my program will crash when launched with QtCreator. I didn't see this issue before. the crash happens before even calling into main().

    I down graded my QtCreator to that of Qt5.2, the same problem still happens.

    but if I directly run the built executable, everything is fine. only when I launch it with qtcreator, it crashes.

    I enabled c++ exception in cdb, but it doesn't capture anything.

    I don't know how to debug this. very weird problem.

    the only changing factor seems to be the harddrive and the os. before I used win8, now it's win8.1

    this doesn't happen with simple Qt examples. only my large project.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      billconan
      wrote on last edited by
      #2

      I kinda figure out the problem.
      everything worked after I moved dlls from one folder to another. let me explain the details:

      I selected "launch in console", and saw this error message:

      exited with code -1073741515

      this is an error of loading dlls.

      usually, a qt project directory structure looks like this:

      /root/qtproject
      /root/build-qtproject_4_8_6-debug
      /root/build-qtproject_4_8_6-debug/debug
      /root/build-qtproject_4_8_6-debug/release

      the executable is in /root/build-qtproject_4_8_6-debug/debug
      but the default working directory is /root/build-qtproject_4_8_6-debug

      I usually copy all the dlls inside /root/build-qtproject_4_8_6-debug, this worked for win7 and win8.

      but somehow on win8.1, I have to copy dlls inside /root/build-qtproject_4_8_6-debug/debug, even in qt creator, the working dir is set to /root/build-qtproject_4_8_6-debug

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        I'm glad you've found a solution. Thank you for sharing! :)

        Please edit your original post and add "[SOLVED]" to the title.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        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