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

Add GC.KeepAlive when doing ABI call #1848

Merged
merged 13 commits into from
Oct 28, 2024
Merged

Add GC.KeepAlive when doing ABI call #1848

merged 13 commits into from
Oct 28, 2024

Conversation

manodasanW
Copy link
Member

@manodasanW manodasanW commented Oct 26, 2024

Looking at some recent crash dumps, it looked like the object / RCW was going away while the function call was happening. This then lead to an AV. Adding GC.KeepAlive throughout to try to avoid this. Also added capability to run tests with GC stress.

Fixes #1022

@manodasanW manodasanW merged commit 9a51916 into master Oct 28, 2024
10 checks passed
@manodasanW manodasanW deleted the manodasanw/gcstress branch October 28, 2024 22:16
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.

RCWs could get finalized during unmanaged calls causing for a release on the WinRT object
2 participants