Skip to content

Make the C# object disposable #179

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

Merged
merged 3 commits into from
Apr 5, 2022
Merged

Make the C# object disposable #179

merged 3 commits into from
Apr 5, 2022

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.

2 participants