-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix: fatal exception "Element not found" in UWP multiple views apps #2215
Conversation
…reApplication.Views[0].Dispatcher 2 Wrapped Interlocked.CompareExchange by try...catch to call standard exception handler
Exceptions in Interlocked.CompareExchange will be ignored.
Hi, any news on when a new version containing this fix will be released on nuget? |
Should already have been released a while back. |
https://github.com/reactiveui/ReactiveUI/releases/tag/10.5.6
|
oh, thanks. That is strange, then maybe something is messed up on my machine...thanks for the info |
ok, found the cause. The fix #2215 changed the logic in "ScheduleOnDispatcherNow", but not in the classes ctor. Thus the exception still is thrown when SingleWindowDispatcherScheduler is constructed. I'll try to make a PR. |
My app has not been crashed after this update. Bug fixed. Thank you |
I think this was a misunderstanding. I was talking about the bug #2154 that suposedly got fixed with this merge (which isn't). So I'll try to fix it :-) |
1 Check _dispatcher has been initialized to prevent always calling CoreApplication.Views[0].Dispatcher
2 Wrapped Interlocked.CompareExchange by try...catch to call standard exception handler
What kind of change does this PR introduce?
It is bugfix and fixes #2188
What is the current behavior?
#2188
What is the new behavior?
App is not crashing on getting the first app view dispatcher in multiple views apps.