process cannot access the file?

José Couto

New member
Joined
Nov 14, 2024
Messages
4
Programming Experience
Beginner
FileStream objFileStream = new FileStream(pathPhoto, FileMode.Open);

System.IO.IOException: 'The process cannot access the file 'D:\Roses\Images\Flower fold.jpg' because it is being used by another process.'
 
That is a normal error message if the file is locked by a program for read or write. You could try using Process Explorer from Sysinternals Suite to try to find out who has the file open.
 
Back
Top Bottom