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

Exception in OnActivateAsync is not handled properly #745

Open
speedyalibaba opened this issue Mar 30, 2021 · 2 comments · May be fixed by #961
Open

Exception in OnActivateAsync is not handled properly #745

speedyalibaba opened this issue Mar 30, 2021 · 2 comments · May be fixed by #961

Comments

@speedyalibaba
Copy link

I'm throwing an Exception in the OnActivateAsync method in my ShellViewModel.

image

But it's not handled properly. After some time I get this Exception:

"A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Exception of type 'System.Exception' was thrown.)"

Shouldn't this Exception been handled by one of these methods?
image

@vb2ae
Copy link
Member

vb2ae commented Apr 17, 2021

@speedyalibaba Couple of questions. What version of caliburn micro are you using? Do you have a simple sample that repos this issue?

@nietras
Copy link

nietras commented Sep 7, 2023

I have same related issue Caliburn.Micro 4.0

@vb2ae vb2ae pinned this issue Dec 30, 2024
@vb2ae vb2ae linked a pull request Jan 1, 2025 that will close this issue
@vb2ae vb2ae linked a pull request Jan 1, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants