Hi,
You do not have to release it, all you have to do is close it
Just call FileStream.close() ( if you used FileStream )
Release should close it also, but when depends of when the GC runs so it's
not deterministic.
In case you need to know if other program has it open download the filemon
utility from
www.sysinternals.com
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"mamin" <ma***@autograf.pl> wrote in message
news:cs**********@nemesis.news.tpi.pl...
In my code I'm creating a file and then I need to delete it.But while
deleting, it's appear system error that some process is using my file and
it's impossible to delete it.I was trying to release all objects using
this
file but without any result.Is there any method to release all objects
using
my file or to spy which object is using this file?