473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how do you debug this

The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.
Dec 28 '05 #1
8 1065
If you are on XP or 2000:
open ControlPanel->AdministrativeTools->ComputerManagement. Then under
"Shared Folders" click "Open files" subtree. It should show which
process is the locker.

--
Vit Zayko
Dec 28 '05 #2

"Vitaly Zayko" <vitaly_at_zayko_dot_net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If you are on XP or 2000:
open ControlPanel->AdministrativeTools->ComputerManagement. Then under
"Shared Folders" click "Open files" subtree. It should show which process
is the locker.

--
Vit Zayko


Not at all, this is for files opened from a remote client through a network
session.

Willy.
Dec 28 '05 #3

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.


If only VS is running, it's VS that is accessing the file, are you sure
there is no application started from within VS that has the file open?

Willy.
Dec 28 '05 #4
Check all of the services running on ur PC
Dec 28 '05 #5
You can use SysInternals' freeware ProcessExplorer (
http://www.sysinternals.com/Utilitie...sExplorer.html ) to search
for open handles and other useful stuff.

Dec 28 '05 #6

"Rahul Goel" <ra*********@gmail.com> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
Check all of the services running on ur PC


Why?

Willy.
Dec 28 '05 #7
> You can use SysInternals' freeware ProcessExplorer (
http://www.sysinternals.com/Utilitie...sExplorer.html ) to search
for open handles and other useful stuff.


Or even easier, their Handle utility for command-line use. This is one of my
favorites.

http://www.sysinternals.com/Utilities/Handle.html

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Dec 28 '05 #8
This often happens with me after viewing a file or folder's properties
using Explorer on XP Professional. Sometimes for no apparent reason,
Explorer appears to lose track of the open file descriptor, and I must
log off completely (or kill explorer.exe) to delete the file or folder
in question.

As with what other people have said, the SysInternals utilities prove
extremely valuable when figuring out problems such as this.
David.
Howard wrote:
The process cannot access the file because it is being used by another
process.

the file is 1.txt and there are no programs open but visual studio

I'm trying to rename this file, but it won't let me. How can I see what's
accessing this file at the moment?

Thanks.

Dec 28 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
10
by: John Smith | last post by:
After reading C# documentation the Conditional attribute seemed the way to go, but after inspecting the IL it seems those methods are still there and I imagine the CLR removes them. Using #if DEBUG...
7
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
12
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
3
by: André | last post by:
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%>
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
1
by: Alexander Vasilevsky | last post by:
Hi! How to debug Powershell commandlets? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.