-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Get Sharing violation exception #56
Comments
I would need a repro as this doesn't touch the files at all so that would be odd. |
@jessejiang0214 just check your code it doesn't access file at the same time from different threads |
Hi, I'm having the same issue on MonkeyCache.FileStore. In MonkeyCache.LiteDB I never encountered any concurrent access problems from different threads @jamesmontemagno Could you please modify MonkeyCache.FileStore to ensure that only one process accessing the underlying file at the same time. Since my code is highly multi threaded I need to use a wrapper around MonkeyCache.FileStore accesses at the moment to ensure single access. `public sealed class CustomBarrel : IBarrel
But I think such mechanism should be in MonkeyCache.FileStore itself. Thx a lot. Markus |
Getting this exception in the following way (not always):
Note: on app start I call networking services and save the responses with MonkeyCache. |
@jamesmontemagno do you think it would be possible to enhance MonkeyCache to prevent this multithreading problem? |
also happening to me |
Hi James,
I used MonkeyChache.FileStore 1.2.0-beta in my .NetStandard 2.0 Xamarin.forms project.
I got this exception when I try to call
Do you have any idea why it throw this exceptions?
I can catch the exception and it works fine. Do you think it's necessary to mention this in the document?
Thanks,
Jesse
The text was updated successfully, but these errors were encountered: