Skip to content

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
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