G
Grant
Occasionally when I try and save a document:
-----------------------
xmlDoc.Save(Application.StartupPath + @"\Config.xml");
-----------------------
I get this error saying that the file could not be accessed because its
locked by another process or something (I cant get it to do it now - because
I want it to crash...)
Is there a way to check whether a file is locked by another process befre
trying to save it? If it is locked is there a way to terminate the other
process or somewhow free it up so that it can be saved?
Thanks,
Grant
-----------------------
xmlDoc.Save(Application.StartupPath + @"\Config.xml");
-----------------------
I get this error saying that the file could not be accessed because its
locked by another process or something (I cant get it to do it now - because
I want it to crash...)
Is there a way to check whether a file is locked by another process befre
trying to save it? If it is locked is there a way to terminate the other
process or somewhow free it up so that it can be saved?
Thanks,
Grant