You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Implement the Dispose pattern to enable deterministic release on many cases. Fix a lifetime bug in factories that was exposed deterministically by this work.
Fixes#37
* Implement Dispose pattern on IObjectReference.
Implement the Dispose pattern to enable deterministic release on many cases. Fix a lifetime bug in factories that was exposed deterministically by this work.
Fixes#37
* Move release up to IObjectReference.Dispose.
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 baseIObjectReference
class). This will allow us to useusing()
blocks around the native calls to keep theObjectReference<T>
to a CCW alive across the native call.The text was updated successfully, but these errors were encountered: