Sorry come ressurect an old thread, yet I have this precise same trouble on home windows 7 64-bit with Visual Studio 2010. The linker stops working with the error:

1>LINK : deadly error LNK1168: cannot open C:yadadamyapp.exe for writing

Typically wake up after I run the regime from intuitive Studio, climate close the program. The process shuts down and also does not show up in one of two people the procedure manager, or from the commmand line using the "handle application. I obtain this error roughly 75% of the time.

You are watching: Visual studio cannot open file for writing

Here is what I have actually tried:

The applications "myapp.exe" has closed down cleanly ns think. That is no on the process list in the Windows task ManagerSysinternal"s routine "Handle" doesn"t find any matching handles for "myapp.exe"The freeware regime "Unlocker 1.9.0" doesn"t think the document is locked I have the right to manually delete the file To get roughly this error, I have actually to:Manually delete the document through home windows Explorer, or Wait a few minutes, then try building again. Any type of solution?


Tuesday, July 20, 2010 1:26 AM
*

*

0
sign in to poll

I disabled the antivirus, I"m using Norton defense Suite. The difficulty has no gone away. I additionally have troubles with the home windows 7 filesystem not constantly updating the explorer window after document operations. I doubt this is related.

Frustrating... I need to go back to home windows XP ns think, this is my job-related machine.

Anyone have comparable problems?

I am utilizing TortoiseSVN and Elaborate Bytes digital CD-ROM drive that might be leading to the problem.

I adjusted the "DontRefresh" crucial from 1 come 0 in HKEY_CLASSES_ROOTCLSIDBDEADE7F-C265-11D0-BCED-00A0C90AB50FInstance.Uninstalled virtual CD-ROM journey Hopefully this will solve the problem, will short article results.
Thursday, July 22, 2010 1:12 AM
*

*

4
sign in to poll

Riiul, interesting...

Saw this post:https://connect.microsoft.com/VisualStudio/feedback/details/586436/system-locks-exe-on-build?wa=wsignin1.0

Suggests that mechanism (pid 4) has a lock on the exe document for around 30-60 seconds after each compilation. "Obviously i cannot shut under that procedure as that would close smss.exe." Then later he states he turned off applications Experience and also this resolved the problem.

Here is a blurb about transforming it off.

http://wiki.blackviper.com/wiki/Application_Experience

I to be going to shot this and also see if this solves the problem.

BTW, can someone note this thread a UNANSWERED? This has actually nothing to perform with antivirus.

See more: How To Stop Websites From Opening New Tabs Firefox, How To Stop Websites From Opening New Tabs


Thursday, September 16, 2010 11:49 PM
*

16
authorize in to poll

okay guys below is the solution.

JUST revolve ON THE "APPLICATION suffer SERVICE" IN her SERVICES setup OF WINDOWS

I fixed by this way and the works prefer a charm :)

http://gauravpandey.com/wordpress/?p=291


Wednesday, September 22, 2010 6:40 PM
0
sign in to poll
My teacher is simply a geniuos.. That told me come close the .exe file, then simply debug her VS proyect and, just how my teacher speak "be happy"
Sunday, June 2, 2013 4:38 PM