Skip to content

See if we can replace with UnhandledException handler #4180

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

Open
jamescrosswell opened this issue May 12, 2025 · 0 comments
Open

See if we can replace with UnhandledException handler #4180

jamescrosswell opened this issue May 12, 2025 · 0 comments
Milestone

Comments

@jamescrosswell
Copy link
Collaborator

In order to reliably catch unhandled exceptions on iOS we listen to Runtime.MarshalManagedException rather than AppDomain.UnhandledException. Whilst this seems to work, it has the disadvantage that the args passed to Runtime.MarshalManagedException don't indicate whether the exception is terminal or not (we just assume it is).

Apparently this should be fixed in .NET 10:

We'd need to test this out of course. If it works though, we could do away with the Runtime.MarshalManagedException callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant