|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Issues with Streamwriter classIam 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) -- Show quoteRegards, Lloyd Dupont NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "Mohit" <Mo***@discussions.microsoft.com> wrote in message news:CB40091C-E413-428D-B2B9-848F69E9573F@microsoft.com... > 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 > |
|||||||||||||||||||||||