-
Notifications
You must be signed in to change notification settings - Fork 94
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
Freeze when trying to check a file exists #46
Comments
This appears to be a bug with the behavior of the method The workaround (at least that I've found) is to spawn a new thread using |
I am also experiencing this bug |
Can you fix this? I'm using a PCL library with profile44, I don't have |
Also running on an other thread doesn't work for me. I've tried to implement this into the UWP solution, and inject it into the PCL library where I'm using PCLStorage. It still freeze on
|
Maybe this helpful for you, try some function like below public static async Task<ExistenceCheckResult> CheckExists(this IFolder rootFolder, string fileName)
{
return await Task.Run(() => rootFolder.CheckExistsAsync(fileName)).ConfigureAwait(false);
} and call it synchronous with get Result to resolve your problem temporary. |
Thank you, it works but only sometimes. It still can freeze, on CheckExists and on other calls. We really need a fix... |
Yes, you right. I need to fix it, but when I call all asynchronous function with top pattern, I could not see freeze any more. Did you sure call all API with top pattern? |
I've upgrade every single call to the library with your pattern, and it seems to work now. Before I had OpenAsync on IFile to update, and it froze on alternate moments. Thank you! Are you a maintainer? |
You are welcome :) |
I think the error is here:
ConfigureAwait(false) is missing |
From the comments this seems like a 1 line change, but as the last check in was Jan 2015. I'm not holding my breath. Frustrating |
nuget update? |
+1 |
fixed this in the source ages ago. Still no nuget update! |
2019, getting this problem with the Nuget package too. Can we update this package? |
@Tamachan87 Ditch this nuget entirely and swap it all for |
ITNOA
Hi,
When I try to check exists file such as below code
My platform:
My process freeze, I found one problem similar to me from here.
The text was updated successfully, but these errors were encountered: