Skip to content

Conversation

@oldnewthing
Copy link
Member

Services need to clean up all their COM objects without running down COM. Provide a way to remove a specific factory or factories from the static lifetime store.

clear_factory_static_lifetime<Class1, Class2, Class3>();

The classes must be factory classes (in the factory_implementation namespace), to match make_self. We use the instance_class subtype to verify this.

This fixes issue #651

Services need to clean up all their COM objects prior
to COM rundown. Provide a way to remove a specific factory
or factories from the static lifetime store.

```cpp
clear_factory_static_lifetime<Class1, Class2, Class3>();
```

The classes must be factory classes (in the `factory_implementation`
namespace), to match `make_self`. We use the `instance_class`
subtype to verify this.
@kennykerr
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Thanks!

@kennykerr kennykerr merged commit 297365e into microsoft:master Jun 8, 2020
@ChrisGuzak
Copy link
Member

thank you Raymond.

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.

3 participants