Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locked File Error on TSuperObject.ParseFromFile #126

Open
TCardinal opened this issue Jul 5, 2018 · 2 comments
Open

Locked File Error on TSuperObject.ParseFromFile #126

TCardinal opened this issue Jul 5, 2018 · 2 comments

Comments

@TCardinal
Copy link

Not really sure if this belongs here, but when I use ISuperObject in a large threaded application I sometimes get 'Cannot open file "C:\templates\MyFile.json". The process cannot access the file because it is being used by another process'

The source code looks fine as it reads a FileStream with OpenRead and DenyWrite, so it shouldn't be a problem.

@onryldz
Copy link
Owner

onryldz commented Jul 5, 2018

Anti-virus programs may be blocking, you can check this.

@TCardinal
Copy link
Author

I'll give it a look. one of those things with threads - I have 8 running and each loads the file each time one is given a task. it only seems to be about 10% that have the issue, but guess that could be the virus checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants