Debug runs but release crashes on launch
-
Hi,
I am a new Qt developer. I have started with a simple app which runs fine in the debug build, but which crashes on launch in the release build. When I comment out code, the release works until I execute;this->ui->setupUi(this);
It hangs in some Qt initialization, but only in the release build!
Any suggestions greatly appreciated.
john
-
Past more code. In debug uninitialized variables could have a different values then in release build, so it's important to have a initialized all variables.
-
I had the same trouble.
Sometimes the debug mode misses some exception messages.- Choose Build-> Clear All
- Run QMake
- Build all
If this fails, check out step by step, each line in debug mode, you will surely find it.