Home > OS >  Qt Application has finished, is good or bad?
Qt Application has finished, is good or bad?

Time:05-12

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?

CodePudding user response:

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 unix this stops 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).

CodePudding user response:

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

  • Related