-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ImageAnimator.StopAnimate (on Unix) could throw PNSE #39405
Comments
Tagging subscribers to this area: @safern, @tannergooding |
Area owners (@maryamariyan @michaelgsharp @safern @tarekgh) -- Do you think it would be appropriate to mark |
I prefer if there is a way to avoid using Windows specific Thread.Abort and find equivalent on Linux. I am not even sure if Thread.Abort is the best option for Windows either. CC @jkotas |
Add a bool flag that gets set by |
With dotnet/designs#139 and #39269, we are marking
Thread.Abort()
as Obsolete because it unconditionally throws PlatformNotSupportedException. The tests for the PR turned up thatImageAnimator.Unix.cs
usesThread.Abort()
insideStopAnimate
.I am going to put a
#pragma warning disable
around theThread.Abort()
call, but this code would be unexpectedly throwing PNSE right now, which means it's either dead code or there's a lurking bug that no one has reported.The text was updated successfully, but these errors were encountered: