-
Notifications
You must be signed in to change notification settings - Fork 49
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
Bug: Identifier Not Found #161
Comments
|
thx :D |
Exception when calling ShowAsPopupAsync twice
|
@shaosu please open new issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got a crush when I use the Android verision of my app. When I was debugging it on my computer, I got the exception message:
InvalidOperationException: No Loaded DialogHost have an Identifier property matching dialogIdentifier (The Identifier)
It happened at DialogHost.Close(String dialogIdentifier) when I had just closed a message box, opening the second one(using await).
It only happens when the two boxes both use ShowAsPopupAsync.
I found that the the bug may be caused by the SetCloseAction in MsBox class. When the first one is going to be closed, the TrySetResult method is invoked, then the second one is opened, but the first have not been closed, it made the first cannot be found with the identifier and caused the crush.
When I use await Task.Delay(10) between two boxes or let the TrySetResult method be invoked after the DialogHost.Close, it never happens again.
I'm a Chinese student, if my words are wrong at somewhere, please let me know.
By the way, I would like to create a pull request if needed :D
The text was updated successfully, but these errors were encountered: