And what does the console show? Can you use the debugger to step through and do you know which line of your program is the last to execute? Does it behave differently when you step a line at a time versus just run? Have you tried commenting out sections until you get it to run?
Any particular reason you’re using C’s non-typesafe printf() instead of C++‘s typesafe iostream library or Qt’s built-in features like qDebug()). I ask because in embedded forums I frequent, many crashes happen long after an invalid printf() call, like when a parameter to printf went from a double to an int and the format specifier wasn’t updated.
↧