Caliburn.Micro icon indicating copy to clipboard operation
Caliburn.Micro copied to clipboard

Exception in OnActivateAsync is not handled properly

Open speedyalibaba opened this issue 5 years ago • 2 comments

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

speedyalibaba avatar Mar 30 '21 14:03 speedyalibaba

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

vb2ae avatar Apr 17 '21 00:04 vb2ae

I have same related issue Caliburn.Micro 4.0

nietras avatar Sep 07 '23 13:09 nietras