Debug runs but release crashes on launch
jelemans last edited by
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;
It hangs in some Qt initialization, but only in the release build!
Any suggestions greatly appreciated.
Hostel last edited by
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.
qxoz last edited by
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.