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 Context checks to factory caching and simplify factory caching between factories and statics. #1359

Closed
wants to merge 14 commits into from

Conversation

jlaanstra
Copy link
Collaborator

@jlaanstra jlaanstra commented Sep 13, 2023

Cache factories and statics per context, similar to coreclr/.NET Native behavior.

Fixes #1112

@jlaanstra jlaanstra force-pushed the user/jlaans/1112-3 branch 2 times, most recently from e9bfaf3 to 61594c7 Compare September 13, 2023 19:59
@jlaanstra jlaanstra marked this pull request as ready for review September 15, 2023 16:54
{
[DllImport("api-ms-win-core-com-l1-1-0.dll")]
private static extern unsafe int CoGetContextToken(IntPtr* contextToken);

[DllImport("api-ms-win-core-com-l1-1-0.dll")]
private static extern int CoGetObjectContext(ref Guid riid, out IntPtr ppv);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also fix this signature and drop the runtime marshalling while we're at it? 🙂

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.

COMException (0x800401FD): Object is not connected to server (CO_E_OBJNOTCONNECTED)
2 participants