Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reliability: Suppress COMExceptions during UI container cleanup #17508

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

Closed
seer-by-sentry wants to merge 1 commit into main from seer/suppress-comexceptions

Conversation

Copy link
Contributor

@seer-by-sentry seer-by-sentry bot commented Aug 31, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • Closes #FILES-APP-4BK

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Observed COMExceptions occurring during UI container recycling when BulkConcurrentObservableCollection.Clear() triggers CollectionChanged event.
  2. Verified that the added try-catch blocks in RefreshContainer, UninitializeDrag in BaseLayoutPage.cs, and FileList_ContainerContentChanging in GridLayoutPage.xaml.cs and DetailsLayoutPage.xaml.cs suppress the COMExceptions.
  3. Confirmed that the fix prevents crashes when the WinUI framework disposes containers faster than our cleanup code can execute.

@yaira2 yaira2 closed this Sep 2, 2025
@yaira2 yaira2 deleted the seer/suppress-comexceptions branch September 2, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /