Solved Program crashes on exit
-
My program seems to be exiting normally but Qt Creator reported it as crashed. I have read in the forum that it could be caused by deleting the same object twice on destruction. Is there a debugging tool to find out where it is?
15:12:16: The program has unexpectedly finished. 15:12:16: The process was ended forcefully. 15:12:16: E:\programming\myApp\build\debug-64bit-msvc\myApp-debug-64bit-msvc.exe crashed.
-
@lansing
When you run your program from Qt Creator, do you do this from Debug or just Run? The hope would be that if inside the debugger it would break when this happens, and allow you to view a stack trace. -
Oh you're right, I ran it with the Debug button and it caught it on exit.