Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: File locking problem.

31 Jan 2012   #1
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 
File locking problem.

Hello there, I am new to this forum and I apologize if this is in the wrong place.

I seem to have a haunting problem that has followed me over an operating system reinstall twice now and the problem is this:

The main issue is when using Visual Studio Express (but not limited to) if I recompile a program it fails saying that it was unable to delete the previous executable but If I wait a couple of minutes and try again it goes through flawlessly.

Also when trying to install programs like Steam It fails on the same error, unable to delete the executable that it tries to overwrite.

It also crops up when trying to delete executable of a recently opened program especially if trying to delete the folder that the executable resides in.

I have spent many hours searching for an answer and found no working solution. The issue has followed me onto a completely fresh windows 7 install (from Home Premium to Ultimate), which is 100% legit.

Everything points to permission errors but I have tried everything I can think of.

Any thoughts or ideas as to solving the issue?

Many Thanks
Oli


My System SpecsSystem Spec
.
31 Jan 2012   #2
Lemur

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

It almost sounds like the process is still running.

Take a look at this link:

c# - Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug - Stack Overflow

Is the folder being shared with a virtual pc?

Run process explorer to see what's tying up the executable:

Process Explorer
My System SpecsSystem Spec
31 Jan 2012   #3
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

Thanks for the fast reply.

I have taken a look at this before and it didn't work for me.

What baffles me is why its happening on a system wide scale. I just tried the process explorer and it shows that the executable gets killed off when it should and the error still comes up on a rebuild.

I've been using windows 7 since it was leaked many moons ago but I have never had to deal with this before.

I know that everything would suggest otherwise but the only thing I can think of is a hardware issue.

Thanks
Oli
My System SpecsSystem Spec
.

31 Jan 2012   #4
fseal

Windows 7 x64 Ultimate
 
 

Hmm, this may happen with AV software sometimes but usually only if the program is run for a very short period of time. The AV software will frequently do a quick scan on an exe when it is launched, (before it is actually launched) and releasing the file may lag a bit after launch possibly... Could try disabling your AV software if you have any and see if it goes away.
My System SpecsSystem Spec
31 Jan 2012   #5
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

I had previously tried this before the reinstall and tried it again before any antivirus was installed and with Defender disabled as well..

Thanks
Oli
My System SpecsSystem Spec
31 Jan 2012   #6
Lemur

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

If this is happening on a new install, I wonder if it could be a driver-related issue? Please post your system specs:

http://www.sevenforums.com/profile.php?do=extra
My System SpecsSystem Spec
31 Jan 2012   #7
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

Spec's Updated.

Thanks
Oli
My System SpecsSystem Spec
31 Jan 2012   #8
JimLewandowski

 
 

If you got Task Manager >> Resource Monitor up and running to get the handle list for VS C++, maybe you could search on the .exe in question to get that at the top of the display (can't recall how to do a handle/search display search results). Then, maybe you can figure out what's happening.
My System SpecsSystem Spec
31 Jan 2012   #9
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

I've had a look down that route before and nothing strange seems to be happening.. Nothing is locking it and the program isn't still running.. I'm currently doing a 3rd install.. And going to trial and error every driver and program that I install and see which one is the culprit.. If that fails then I might revert back to windows xp..

Many thanks
Oli
My System SpecsSystem Spec
31 Jan 2012   #10
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

So a complete bare bones install has shown no issues with compiling and even installed steam without a problem.

No third party drivers have been installed except for the wifi card and Windows update has not been enabled.

Will post if I find the culprit.

Many thanks
Oli
My System SpecsSystem Spec
Reply

 File locking problem.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Possible File Association Problem or Open With Problem! MAJOR
Apologies if this is not the appropriate catagory but i had trouble finding a suitable one, here is my problem: I was messing about with a file using winrar, (sorry i cant remember which file it was) i right clicked the file and clicked 'open with' i chose winRAR and it screwed up and decided...
Software
Problem with file copying adversely affecting media/file sharing & WMC
WMC recording/playback and media/file sharing seems to work fine until I go to copy a file between drives, where one of those drives is currently using some of its i/o bandwidth to do media. The copy hogs the i/o bandwidth, doing nasty things to the real-time needs. How do I permanently tell...
Performance & Maintenance
Folder/file locking software
Hi, Is anyone aware of any folder/file locking software that I can use to completely block access (read and write) to several folders on a removal USB? This request is for a friend who keeps sensitive information on a removal USB drive. The idea is that if it is ever lost/stolen he can rest...
Software
Problem Installing, missing file or HD problem?
Hi I hope someone can help me on here - I've tried for about 2 hours to get a copy of windows 7 working on my old pc and really can't see what the problem is when it comes to doing a clean installation. It's not "old' only a year old or so with very good specs but I use another machine now so...
Installation & Setup
Locking up
i have installed an upgrade of window 7 from xp. all works fine until i have the computer on overnight and then i try to start up the system out of energy conserve mode(black screen). i get the circle going around and around but never gets out of this mode. any ideas?
BSOD Help and Support
locking a file from yourself
Here's one for you. I work at home and often find myself distracted by going to my favorite websites. To avoid this problem I've been using the hosts technique to block particular websites. It worked for a while but I still find myself going to the hosts file and unblocking myself. Does...
General Discussion


Our Sites

Site Links

About Us

Find 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 11:42.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App