Skip to content
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

Replace use of deprecated finalization #123

Closed
neilcsmith-net opened this issue Nov 15, 2018 · 1 comment
Closed

Replace use of deprecated finalization #123

neilcsmith-net opened this issue Nov 15, 2018 · 1 comment
Milestone

Comments

@neilcsmith-net
Copy link
Member

Use of finalization is rightfully deprecated and problematic. Memory management of GObjects and other native types should be moved to use a cleaner-like mechanism with PhantomReferences. This should also take into account alternative options for managing handles for native objects in addressing #122 and #78

@neilcsmith-net neilcsmith-net added this to the 1.0 milestone Nov 15, 2018
@neilcsmith-net
Copy link
Member Author

OK, extend current WeakReference in NativeObject to encapsulate the native pointer (actually a PointerType) and handle the various ref, unref, dispose, invalidate behaviours. Need to pass up from subclasses along with Initializer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant