Skip to content
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

ResultProvider: Consume DkmClrModuleInstance.GetMetaDataImportHolder #76395

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregg-miskelly
Copy link

Previous to this change, the ResultProvider would use DkmClrModuleInstance.GetMetaDataImport, but did NOT use Marshal.ReleaseComObject on the result. This could result in locked files if the RCW took a long time to be finalized.

This PR switches to use a new GetMetaDataImportHolder API that adds an IDisposable wrapper struct to take care of this cleanup.

This PR requires VS 17.13 Build 35612.30 or newer.

Previous to this change, the ResultProvider would use `DkmClrModuleInstance.GetMetaDataImport`, but did NOT use Marshal.ReleaseComObject on the result. This could result in locked files if the RCW took a long time to be finalized.

This PR switches to use a new `GetMetaDataImportHolder` API that adds an IDisposable wrapper struct to take care of this cleanup.

This PR requires VS 17.13 Build 35612.30 or newer.
@gregg-miskelly gregg-miskelly requested a review from a team as a code owner December 12, 2024 17:37
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Dec 12, 2024
@cston cston requested a review from tmat December 12, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Interactive Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants