myApplication.exe has stopped working after closing the window

venom8914

New member
Local time
9:37 PM
Messages
2
I created a GUI code in Qt 5.2.0 and added release mode dll's in the ../release folder to run as an independent exe. The application runs fine, but whenever I close it, I receive an error stating myApplication.exe has stopped working

Kindly note that this error is obtained after closing myApplication and not while it runs.

Is it due to dll linker issues? In the ../release folder I have added the copied the following dll files,
Code:
..\Qt\Qt5.2.0\5.2.0\msvc2010\plugins\platforms ;
..\Qt\Qt5.2.0\5.2.0\msvc2010\plugins\imageformats ;
..\Qt\Qt5.2.0\5.2.0\msvc2010\bin ; ..\OpenCv246\bin ; 
msvcp100.dll & msvcr100.dll

Here is what I tried to solve this:-

1. Ran CHKDSK, ref
http://windows-exe-errors.com/fixing-windows-explorer-has-stopped-working-error-in-windows-7/

2. Since this didn't work, I tried with disabling DEP(Data Execution Prevention) . When I tried to selectively disable DEP for myApplication.exe, I got the following error:-
Code:
This program must run with DEP enabled. You cannot turn off DEP for this program

2.1. So I disabled DEP for the entire system using bcdedit in command prompt. Ref http://social.technet.microsoft.com/Forums/windows/en-US/0f4f1fa2-bef2-483e-a00f-9c5224e1f403/turn-off-dep

But this did not help either. On closing myApplication.exe, it continues to show the error as mentioned in the title.

Please advise me to solve this challenge.
 

My Computer My Computer

At a glance

Windows 7 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 32 bit
Browser
Google Chrome
Are you developing this application in Visual Studio 2010? If so, what happens if you run the application in debug mode? Running in debug mode will attach your application to the Visual Studio debugger, so when it stops the debugger will tell you exactly why!
 

My Computer My Computer

At a glance

Windows 7 Professional 64bit
Computer type
PC/Desktop
OS
Windows 7 Professional 64bit
Are you developing this application in Visual Studio 2010? If so, what happens if you run the application in debug mode? Running in debug mode will attach your application to the Visual Studio debugger, so when it stops the debugger will tell you exactly why!

Thanks pixaeiro, I developed this application using Qt 5.2.0 which uses a MSVC2010 compiler and debugger. I am running the application in release mode. I don't think debugger can be used in release mode.
 

My Computer My Computer

At a glance

Windows 7 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 32 bit
Browser
Google Chrome
I'm a bit confused! What IDE are you using to build the project? Qt Creator or Visual Studio 2010?
Yes, you can run a Release executable with the debugger attached, but the debugger windows (Watch, Call Stack) will not be able to show some data.
I suggest you compiling and running the application in Debug mode, attached to the debugger (F5 in VS2010).
 

My Computer My Computer

At a glance

Windows 7 Professional 64bit
Computer type
PC/Desktop
OS
Windows 7 Professional 64bit
Back
Top