how do you debug this

  • Thread starter Thread starter Howard
  • Start date Start date
H

Howard

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 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.
 
Vitaly Zayko said:
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.

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

Willy.
 
Howard said:
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.
 
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.
 
Back
Top