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. Error in release mode: The program has unexpectedly finished.
Forum Updated to NodeBB v4.3 + New Features

Error in release mode: The program has unexpectedly finished.

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

    When I run my code in Qt in Debug mode, it works correctly. But it does not work in release mode.
    The following message displays: "The program has unexpectedly finished. D: \ Engineering \ DyBlend1.2 \ release \ DyBlend4.exe crashed."
    Already searched in other topics but I not find the solution.
    Anyone have any ideas?
    I use MinGW

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rondog
      wrote on last edited by
      #2

      Any other information? What does the debugger say about where or what crashed?

      I had a somewhat similar problem using VC++ (ver 6) back in the old days. I could only compile this one particular program for debug build as release build would crash the compiler (only message I got from the crash was to contact Microsoft and report the error - bleh!). It turns out it was a very subtle mistake in an inline function; it took me a long time to find it.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alex_malyu
        wrote on last edited by
        #3

        I am not sure about MinGW,
        but if it was VC I would say 90% of release only errors are
        lack of initialization.
        In debug memory is always initialized to 0. When in release it is not.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rondog
          wrote on last edited by
          #4

          I very much doubt it is MinGW. I have used many versions of this for quite a few years now and never had this issue.

          Lack of initialization makes sense.

          Another possibility is some optimization is done that has a detrimental effect on your program. This is rare but I have seen one example of this (in my case it was related to a loop - needed to use the keyword 'volatile' on one of the variables).

          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