Skip to content

Conversation

seer-by-sentry[bot]
Copy link
Contributor

@seer-by-sentry seer-by-sentry bot commented Oct 5, 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.

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. Opened Files
  2. Confirmed that the application starts without a TypeInitializationException related to Win32Helper.
  3. Navigated to Control Panel and Control Panel Category View to ensure they load correctly.

Fixes FILES-APP-4NW. The issue was that: Missing Vanara.Windows.Shell.Common assembly causes fatal TypeInitializationException during eager static initialization of Win32Helper.

  • Use Lazy to initialize ShellFolder instances for Control Panel and Control Panel Category View.
  • This defers the initialization of these objects until they are actually needed, potentially improving startup performance.

This fix was generated by Seer in Sentry, triggered by Yair. 👁️ Run ID: 1769176

Not quite right? Click here to continue debugging with Seer.

@yaira2 yaira2 closed this Oct 5, 2025
@yaira2 yaira2 deleted the seer/lazy-shellfolder branch October 5, 2025 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant