The program has unexpectedly finished?
-
hi,my program has not errors.when i run it it return :
The program has unexpectedly finished.
if it has error ,for me is easy for fixing it,
my question is how can fix and repair my source in this conditions:
it is not any clue for fixing it!?
my source has more than 5000 line source:(
thanks for reply -
simply start in debug mode and single step. line by line.
If it crashes before main function.
You have a global / static object that cause the crash. -
@stackprogramer
Well good luck .
such "drop dead" errors can be hard to find.If u can single step for looong time and no crash, then u can also
insert
QDebug() << "MARK X";
in good locations (replace X with numbers)
To give hint how far it goes before dying.
So faster locate the area of the crash. -
What OS? What compiler? Does the error message appear on exiting the app or before it's finished?
As mentioned running a debug version of your app under a debugger may help. Or if it's a memory corruption issue, valgrind can help.