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.

01 Feb 2012   #21
JimLewandowski

 
 

I assume this is repeatable enough that if you sit in Visual Studio and compile and link this .exe you can get this error message.

Get into Resource Monitor and get to the CPU tab at the top and the HANDLE window below.

I don't know if the enqueue (semaphore/lock) is at the .exe level. For example, I have a .bat file opened in notepad but in the handle search, only the DIRECTORY is shown via a handle.

So, be ready and have your .exe directory typed into the handle SEARCH entry so you can see what Visual Studio is doing with it.

You can keep clicking the up/down arrow thing which does a REsearch. It seems you do NOT have to have ANY processes in the top window checked to allow THEM to be searched. It seems the search will search everywhere even if none are checked.

If no go here, then we'll try a lock trace (which I've never done but I can play around with to get it set up correctly).


My System SpecsSystem Spec
.
01 Feb 2012   #22
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

happens every time unless waiting about 2 minutes.. Compile some code.. Make a change in the code.. recompile =:

"LINK : fatal error LNK1104: cannot open file 'C:\Users\Oli\documents\visual studio 2010\Projects\test\Debug\test.exe'"

2 seconds will try that above

Thanks
My System SpecsSystem Spec
01 Feb 2012   #23
OliStabilize

Windows 7 Ultimate 64bit SP1
 
 

VCExpress.exe is the recognised handler when the application successfully recompiles and executes but nothing when the error is brought up.

Could try the lock trace?

Thanks
Oli
My System SpecsSystem Spec
.

Reply

 File locking problem.




Thread Tools




Similar help and support threads
Thread Forum
Searchprotcolhost.exe locking file?
Recently, when trying to delete certain file, the process will often be stuck at the windows pop up saying preparing to delete. Every time this happen there will be a searchprotocolhost.exe using very low resource running. It so far only happen when saving files from the net. For example when...
General Discussion
Problem modifying hosts file, change file permissions?
Hi all,win7 Home Premium 64 bit. I'm having difficulties modifying my hosts file. Following guidance from this forum, I open Notepad++ as administrator & can navigate to and open the hosts file. But the "Save" option is greyed out, so I can't save directly to the original location. I can Save As...
General Discussion
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
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 14:46.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App