Usually, this message repeats multiple times. In almost every case, it means you forgot to terminate the program before you rebuilt it. In other words, you did the following:
1). You successfully built your program.
2). When you ran the program by choosing Debug -> Start Without Debugging, you got to the message Press Enter to terminate, but in your haste, you didn't press Enter. So, your program is still executing. Instead, you switched back to Visual Studio to edit the file.
Note: If you run the program by choosing Debug ð Start Debugging and forget to terminate, you're simply asked whether you want to stop debugging.
3). You tried to build the program again with the new updates. At this point, you get this error message in the Error List window.
An executable (.EXE) file is locked by Windows until the program actually quits. Visual Studio cannot overwrite the old .EXE file with the new version until the program terminates.
To get rid of the error, switch to the application and terminate it. In the case of a console application, just press Enter to terminate the program. You can also terminate the program from within Visual Studio by choosing Debug ð Stop Debugging. After the older program has terminated, rebuild the application.
If you can't get rid of the error by terminating the program, the directory may be messed up. Close the solution, exit Visual Studio, reboot, and then reopen the solution
|
No responses found. Be the first to respond and make money from revenue sharing program.
|