File is locked by a process/program

  • Thread starter Thread starter Felipe
  • Start date Start date
F

Felipe

Hello again
I run a script from server side that opens a file.
When ahoter user run the same application, the system fails because this
file is alredy open.
How can avoid this error?
"This files is already open, try again" or another message error intead?

Thanks
 
Hi,
Hello again
I run a script from server side that opens a file.
When ahoter user run the same application, the system fails because this
file is alredy open.
How can avoid this error?
"This files is already open, try again" or another message error intead?

Thanks

Hard to say without seeing how you handle the file. Make sure that
streams are closed after you're done with the file. Also, if you use the
Bitmap class to load an image, I found out that you must absolutely use
the Dispose method when you're finished, or else the image file remains
open.

HTH,
Laurent
 
Back
Top