Skip to content

ObjectReference<T> needs to support the Dispose pattern for correct CCW lifetime #37

@jkoritzinsky

Description

@jkoritzinsky

To help maintain CCW lifetime across native calls, we should change WinRT.ObjectReference<T> to implement the Dispose pattern (and possibly move the release logic up to the base IObjectReference class). This will allow us to use using() blocks around the native calls to keep the ObjectReference<T> to a CCW alive across the native call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue has been fixed in an upcoming or existing release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions