Issues with Streamwriter class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Iam using streamwriter class of .net to write in a file. The location of
file is a network drive. Now if for some reason the network is not there
and I execute
sw.close I get a exception ( that's ok).
But later when network comes and I try to delete this file, it says that the
file is being used by a process. How to release the file handle in such a
case.

Thanks,
Mohit
 
hehe, I remember now that I already see that error.
as I rememeber there was no solution (but I'm not quite sure to remember
correctly)

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
 
Back
Top