myApplication.exe has stopped working after closing the window


  1. Posts : 2
    Windows 7 32 bit
       #1

    myApplication.exe has stopped working after closing the window


    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...-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/...3/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


  2. Posts : 4
    Windows 7 Professional 64bit
       #2

    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


  3. Posts : 2
    Windows 7 32 bit
    Thread Starter
       #3

    pixaeiro said:
    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


  4. Posts : 4
    Windows 7 Professional 64bit
       #4

    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


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:22.
Find Us