fatal error LNK1168: cannot open 'filename.exe' for writing

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left><font face=Verdana>When I first compile and link a solution, everything works fine. However, often (about 60 - 70% of the time), subsequent link operations fail unable to open the .exe file for writing. Ive checked the obvious things such as the application still running and even trying to delete the existing file via explorer fails saying the file is in use.</font>
<p align=left><font face=Verdana></font> 
<p align=left><font face=Verdana>If I wait long enough - sometimes up to 5 minutes - then all works well again. I havent worked out when this happens. It usually happens if I encounter an unhandled exception during a test run, but sometimes I get this even when the test run was clean.</font>
<p align=left><font face=Verdana></font> 
<p align=left><font face=Verdana>Any ideas?</font>

View the full article
 
Back
Top