Skip to content

Conversation

@zpgit
Copy link

@zpgit zpgit commented Apr 2, 2022

@zpgit zpgit requested a review from martinweismann April 2, 2022 07:56
martinweismann
martinweismann previously approved these changes Apr 4, 2022
@martinweismann martinweismann merged commit 17e42d8 into develop Apr 5, 2022
@martinweismann martinweismann deleted the ping/dispose branch April 5, 2022 07:19
martinweismann pushed a commit to martinweismann/AutomaticComponentToolkit that referenced this pull request Aug 24, 2022
* Make C# object with native handle disposable

The wrapper user can decide to release the native handle immediately to avoid potential resource race issues.

* Implement dispose pattern following the Microsoft documentation

https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose

* Refine the change according to pull request comments

Co-authored-by: Kevin Zhang <Ping.Zhang@autodesk.com>
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