Comments (3)
Override RxApp.DefaultExceptionHandler if you want a proper control over unhandled exceptions in Rx pipeline.
from avalonia.
About this issue, it seems Reactive doesn't behave quite right, when scheduler has an optimization for the current thread.
See reactiveui/ReactiveUI#1859 and reactiveui/ReactiveUI#2043.
from avalonia.
Override RxApp.DefaultExceptionHandler if you want a proper control over unhandled exceptions in Rx pipeline.
From my point of view the proper handling of an unhandled exception is to terminate an application.
As a workaround I added RxApp.DefaultExceptionHandler to bypass AvaloniaScheduler current thread optimization like that:
RxApp.DefaultExceptionHandler = Observer.Create<Exception>(exception =>
{
Dispatcher.UIThread.Post(() => throw new UnhandledErrorException("Unhandled exception was thrown.", exception),
DispatcherPriority.Send);
});
from avalonia.
Related Issues (20)
- 2-Way Binding to IObservable-like object (+XAML support) HOT 1
- Creating Popup In Code-behind HOT 1
- IBitmap is internal but the docs say it's public HOT 4
- Invoke on UI thread with `Dispatcher` causes `PlatformNotSupportedException` in `StartWithClassicDesktopLifetime`
- Make Avalonia not rely on runtime marshaling
- add support for Rotate3DTransform in TransformOperations.Parse HOT 1
- ListBox deselects selected item when calling Move() on bound ObservableCollection
- TextBox cannot input any characters in the mobile browser Edge HOT 9
- ContextMenu HOT 3
- DataGrid editing does not change Background Color and unreadable in Dark Mode HOT 1
- `WinFormsAvaloniaControlHost` throws an exception in designer
- NumericUpDown tab index ignored on Windows HOT 1
- Menu Item InputGesture does not display when using MVVM HOT 1
- Clicking the title bar with the mouse causes frame drops and freezes HOT 3
- WindowState does not reflect correct state on Windows HOT 8
- When dragging a file onto the App window
- Context menu keyboard shortcut ignored until menu is visible at least once (Windows) HOT 2
- ILauncher is not working in browser HOT 1
- Avalonia.Browser 11.0.11 UP 11.1.0-beta2 ERROR HOT 3
- Name table parsing is incorrect HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.