While running release build in Qt Creator get following error message:
The program has unexpectedly finished.
.....exe exited with code -1073740791
Runs successfully in debug mode in debugger. In another thread found that this is
0xc0000409 = STATUS_STACK_BUFFER_OVERRUN
error. Program and Qt was built with VS C++. Where the problem could be? Or should I run some profiler to check memory access?
When a program runs in debug, but crashes in release, it tends to be due to uninitialised variables. Debug builds, particularly running with a debugger, may clear the memory for you before use, so it can hide the problem. I suggest you start by checking for uninitialised variables.
If you're really stuck, change the configuration to build debug symbols for the release build, then when it crashes attach a debugger and see what the code is doing.
Alternatively, print out debug text to the console with qDebug at various points in your code and see if you can identify where the problem is from that.
User contributions licensed under CC BY-SA 3.0