'Qt Application has finished, is good or bad?
On QtCreator terminal I use to see
application exited with code 0
I understand that's normal exit.
I also have seen
application has unexpectedly finished
Which I understand means there is something wrong.
I also have seen
application crashed
Also means something is wrong.
But now I'm debugging a Qt5 project on macOS and when it hits a breakpoint then the application closes and on the terminal I see
application has finished
What does this tells me?
Given the application closes, it clearly is not good but how does it contrast with the other messages? What might be causing it?
Solution 1:[1]
Application exited with code 0:
This is obtained when closing:
- with the red square on top of the integrated output
- the system close button for GUI apps
- ctrl+c on console apps (on Mac & Linux, not sure about windows this stops the program)
Application crashed or has unexpectedly finished:
You get this one when closing a terminal window with my running program. when you quit the terminal without the process, the terminal has no choice but to force it to shut down.
Application has finished:
This one appears when reaching a breakpoint (a special line in debug mode, click on its number to make it one, it will have a red dot).
So to answer your question, you probably made an unintentional breakpoint somewhere, you can click the red dot to turn it back.
Solution 2:[2]
Try to run your project on RELEASE MODE if have VTK/ITK, if do not such kind of visualization toolkits then try through DEBUG mode . Good luck
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Oxymore-coder |
| Solution 2 | Khan |
