Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QMainWindow based app dissapears in release
Hi, I have just built an app, based on QMainwindow in release mode (x64) in visual studio 2019. I have also used "windeployqt.exe --quick ." command via QT x64 command. While launching I was prompted to provide a few dlls: Qt5PrintSupport.dll, and 2 other libraries. After launching the app, it works well, and after pressing some buttons, and performing part of necessary operations (as well as associated data visualization) the GUI simply disappears.
Are there any tools to track the problem down?
In visual studio in debug and release everything is fine. Only launching app as a standalone .exe file the problem occurs.
JonB last edited by
Very small chance of an error being reported in Event Viewer, you should at least check there.
so you use qml in your app ?
give the deployment tool the path to your qml files via --qmlDir
@J-Hilk No, I dont think so. So how should windeployqt.exe call look like, assuming that I am not using qml?
I may have miss understood.
You do not use QML?
What as your exact windeployqt command ?
JohnCu last edited by JohnCu
@J-Hilk I am not using QML. I wrongly used --quick option. So how should I use it in a correct way? How windeployqt command should look like?
I found something like that... What does it mean?
I performed following cmd commands:
DISM /Online /Cleanup-Image /RestoreHealth
But the problem still exists...
JonB last edited by JonB
It means your program crashed! It has a memory access violation (e.g. bad pointer value) at offset 0x02f5da in the executable. Which probably won't help you much to track it down in the source code, but at least you know why it is disappearing!
@JonB Ok! I will try to track it down ! however in debug mode/release mode in visual there is no such issue...
in debug mode/release mode in visual there is no such issue...
Here's a starting point: https://exceptionshub.com/program-only-crashes-as-release-build-how-to-debug.html