I'm using LINQ to write modifications to an XML file. Each thread writes its own stuff inside the xml file, then calls XDocument.Save(). The first thread that saves the XML does its job correctly, however the next threads fail with
System.IO.IOException (cannot access file because it is being used by another process)
Is there an save method that can be used with LINQ which prevents this errors?
No comments:
Post a Comment