зеркало из https://github.com/stride3d/gettextnet.git
CatalogParser: use File.Open with FileShare.Read to not conflict with other processes (such as antivirus)
This commit is contained in:
Родитель
b4b65c6506
Коммит
17052ff962
|
@ -67,7 +67,7 @@ namespace GNU.Gettext
|
|||
char foundchar = 'x';
|
||||
char[] curr = new char[] {'x'};
|
||||
|
||||
using (TextReader tr = new StreamReader(File.Open(fileName, FileMode.Open, FileAccess.Read),encoding))
|
||||
using (TextReader tr = new StreamReader(File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.Read),encoding))
|
||||
{
|
||||
while (tr.Read (curr,0,1) != 0)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче