Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
The program has unexpectedly finished. The process was ended forcefully.
I was created a basic start-up application. if i was run then it will shows an error....
Starting E:\QT_1\build-untitled1-Desktop_Qt_5_10_0_MinGW_32bit Debug\debug\untitled1.exe...
The program has unexpectedly finished.
The process was ended forcefully.
Run it with a debugger (F5) and it will show you exactly where the crash is happening.
A crash is usually caused by a dangling pointer.
Is it a clean default GUI project that crashes ?
You are using the mingw compiler that came with Qt ?
No custom install of compiler was used, correct ?
Also what platform ?
yes,it is completely clean default GUI project.
i am using mingw compiler that came with QT at the time of installing procedure.
i am using window 7.
i didn't use any custom install of compiler.
i was download QT-5.10.0 offline installer.
@Sekhar Please check your
PATHthat it not contains incompatible Qt or MinGW libraries.
Can you run a plain C++ console program? And a Qt console program?
i tried console c++ program but doesn't work
@Sekhar Do you have any anti-virus software running?
Sekhar last edited by Sekhar
I doesn't have any anti-virus software's on my PC.
if i was tried to select new project--> non-QT project --> plain c++ application.
it will worked. but new project --> Application --> Qt widgets application (or) Qt Console and reaming application didn't work.
@Sekhar Is E: a local drive or a network drive?
CroCo last edited by CroCo
I suspect the 64 bit issue. Please show us the .pro file and the whole project.
@CroCo I doubt: he uses a 32bit Qt with 32bit compiler, works fine even on 64bit Windows.
CroCo last edited by
@jsulm he claims that but hard to tell if this is the case. We need to know when Qt installed which compiler being used. I recall long time ago similar problem occurred with me.
@CroCo See the screenshots above and the build logs in QtCreator
this is my .pro file and doesn't use any cross compilers on it.
Project created by QtCreator 2019-10-03T11:59:25
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = untitled1
TEMPLATE = app
The following define makes your compiler emit warnings if you use
any feature of Qt which has been marked as deprecated (the exact warnings
depend on your compiler). Please consult the documentation of the
deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
You can also make your code fail to compile if you use deprecated APIs.
In order to do so, uncomment the following line.
You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CroCo last edited by CroCo
@Sekhar do you have another version of mingw in your system? Also, when you installed Qt, which compiler did you use? Moreover, can you show the environment variables related to MinGW and Qt?
E: is my local drive not a network drive.
I think this is you want it.