Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access File Error

Status
Not open for further replies.

lothos12345

Programmer
Mar 8, 2005
40
US
Every now and then for no apparent reason when I try to delete a file I get the error of 'unable to access file <file> it is being used by another process' though no other process as far as I can tell is using it. The only way to fix this error is to restart my system. Anyhow is there a way using visual basic.net to unlock the file or kill the process or something, that will allow me to have access to this file without having to restart my computer. Any help offered is greatly appreciated.
 
Who is using it? You always have to be careful with filestream classes during development as it is easy to leave files locked.

Brian Begy
BugSentry - Automatic error reporting for .NET and COM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top