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. Debug runs but release crashes on launch
Forum Updated to NodeBB v4.3 + New Features

Debug runs but release crashes on launch

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

    Hi,
    I am a new Qt developer. I have started with a simple app which runs fine in the debug build, but which crashes on launch in the release build. When I comment out code, the release works until I execute;

    this->ui->setupUi(this);

    It hangs in some Qt initialization, but only in the release build!

    Any suggestions greatly appreciated.

    john

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hostel
      wrote on last edited by
      #2

      Past more code. In debug uninitialized variables could have a different values then in release build, so it's important to have a initialized all variables.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

        I had the same trouble.
        Sometimes the debug mode misses some exception messages.

        1. Choose Build-> Clear All
        2. Run QMake
        3. Build all

        If this fails, check out step by step, each line in debug mode, you will surely find it.

        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