Show
AnswersSuddenly, my Visual Studio Express 2010 C++ stopped rebuilding my project. When I first hit F7 the project builds and runs fine (heck, it's a hello world example). Then I make some changes and hit F7 again, then I get:
Now the funny thing comes:
OS: W7 SP1 64-bit, with latest updates Any ideas, please?
Amal K 3,9292 gold badges18 silver badges40 bronze badges asked Aug 25, 2012 at 17:25
1 The problem is probably that you forgot to close the program and that you instead have the program running in the background. Find the console window where the exe file program is running, and close it by clicking the X in the upper right corner. Then try to recompile the program. In my case this solved the problem. I know this posting is old, but I am answering for the other people like me who find this through the search engines. answered Jul 6, 2013 at 6:53
CodeMedCodeMed 9,60369 gold badges204 silver badges351 bronze badges 7 I've encountered this problem when the build is abruptly closed before it is loaded. No process would show up in the Task Manager, but if you navigate to the executable generated in the project folder and try to delete it, Windows claims that the application is in use. (If not, just delete the file and rebuild, which generates a new executable) In Windows(Visual Studio 2019), the file is located in this directory by default:
To end the allegedly running process, open the command prompt and type in the following command:
This forces any running instance to be terminated. Rebuild and execute! answered Sep 17, 2019 at 16:20
Amal KAmal K 3,9292 gold badges18 silver badges40 bronze badges 1 Restarting Visual Studio solved the problem for me. answered Jan 7, 2017 at 18:15
Aleksei MialkinAleksei Mialkin 2,0121 gold badge24 silver badges25 bronze badges 1 In my case, cleaning and rebuilding the project resolved the problem.
Uli Köhler 12.7k15 gold badges65 silver badges116 bronze badges answered Mar 2, 2014 at 15:35
Hau LeHau Le 1211 silver badge5 bronze badges If the above solutions didn't work, you can try this which worked for me. Open an elevated command prompt (
If you see a message: e.g. in OP's case, the command will be:
answered Aug 3, 2021 at 9:06
UkFLSUIUkFLSUI 5,3816 gold badges33 silver badges47 bronze badges well, I actually just saved and closed the project and restarted VS Express 2013 in windows 8 and that sorted my problem. answered Apr 8, 2015 at 17:50
2 The Reason is that your previous build is still running in the background. I solve this problem by following these steps:
answered Aug 4, 2020 at 12:48
back2Lobbyback2Lobby 4736 silver badges11 bronze badges This solved same problem I also came across very well
answered Sep 25 at 1:11
niosnios 411 silver badge7 bronze badges This can also be a problem from the improper use of functions like FindNextFile when a FindClose is never executed. The process of the built file is terminated, and the build itself can be deleted, but LNK1168 will prevent a rebuild because of the open handle. This can create a handle leak in Explorer which can be addressed by terminating and restarting Explorer, but in many cases an immediate reboot is necessary. answered Oct 9, 2015 at 2:44
Laurie StearnLaurie Stearn 9431 gold badge12 silver badges32 bronze badges I know this is an old question but thought I'd share how I resolved the issue. If you're using Visual Studio and this error occurs, you can try to attach to process (CTRL+ALT+P) and find the "(program).exe" process. When you try to attach to it, an error will display stating that it failed to attach which removes the process from "running" (even though it's not...) You'll also be able to delete the (program).exe from your Debug folder. Hope this helps someone! :) answered Oct 4, 2019 at 5:25
tw1tch01tw1tch01 491 silver badge4 bronze badges FINALLY THE BEST WAY WORKED PERFECTLY FOR ME None of the solutions in this page worked for me EXCEPT THE FOLLOWING Below the comment sections of the second answer, try the following :
answered Aug 14, 2020 at 14:32
If none of the above suggested work for you, which was the case for me, just change the project name. It creates a new exe in the new project name. Later when you restart, you can change it back to your original project name.
answered Aug 22, 2021 at 9:43
RathnavelRathnavel 751 silver badge12 bronze badges I know this is an old thread but I was stumbling in the same problem also. Finding it in task manager is tricky, and I started to grow tired of having to restart my PC every time this happened. A solution would be to download Process Explorer and there you can search for running tasks. In my case I was having the following error:
I searched for answered Sep 15 at 11:15
Ra'wRa'w 1031 silver badge10 bronze badges I also had this same issue. My console window was no longer open, but I was able to see my application running by going to processes within task manager. The process name was the name of my application. Once I ended the process I was able to build and compile my code with no issues. answered Sep 12, 2013 at 23:54
JasonJason 1471 gold badge2 silver badges11 bronze badges Start your program as an administrator. The program can't rewrite your files cause your files are in a protected location on your hard drive.
answered Jan 6, 2014 at 15:07
0 |