Running Rx 5.0.0 in a new WPF application targeting .NET 6 in VS2022/Windows 10.
I would expect the following code snippet, running on the UI thread, to cause an unhandled exception (divide by zero) and crash the application on the third event:
reveals that the exception is (re)thrown on an unobserved task (when the finalizer feels like running that is, which for me at least happens in debug mode).
So it seems that Rx (Concat?) does not observe the task used to run the OnError method per default for a WPF application in this case. I am guessing this is a bug?
Running Rx 5.0.0 in a new WPF application targeting .NET 6 in VS2022/Windows 10.
I would expect the following code snippet, running on the UI thread, to cause an unhandled exception (divide by zero) and crash the application on the third event:
The observer stops after two events as expected, but no unhandled exception surfaces and the application continues.
Looking at unobserved task exceptions, like this:
reveals that the exception is (re)thrown on an unobserved task (when the finalizer feels like running that is, which for me at least happens in debug mode).
So it seems that Rx (
Concat
?) does not observe the task used to run theOnError
method per default for a WPF application in this case. I am guessing this is a bug?If I do for example this,
or
the application crashes due to an unhandled exception, as expected.