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

Implement ComWrappers.RegisterForTrackerSupport to be able create CCW #1544

Merged
merged 7 commits into from
Sep 10, 2021

Conversation

kant2002
Copy link
Contributor

@kant2002 kant2002 commented Sep 9, 2021

This moves a bit towards #306 and #1453

@@ -364,6 +489,9 @@ public object GetOrRegisterObjectForComInstance(IntPtr externalComObject, Create
if (flags.HasFlag(CreateObjectFlags.Aggregation))
throw new NotImplementedException();

if (flags.HasFlag(CreateObjectFlags.TrackerObject))
Copy link
Member

Choose a reason for hiding this comment

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

Just to make sure that I understand this right: This blocks the newly added code from getting executed for now. Is that correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I implement only CCW. I thought that throw that for RCW was a right way, but if I remove that lines, then app from #1453 is basically working (except it does not produce any Toast for me). But exit code == 0. So I would remove these lines, and let it leak. At least you wasn't agains that previously.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

LGTM

@kant2002 kant2002 mentioned this pull request Sep 9, 2021
@jkotas jkotas merged commit a4ba154 into dotnet:feature/NativeAOT Sep 10, 2021
@kant2002 kant2002 deleted the kant/reftracker branch September 10, 2021 06:12
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.

2 participants