[Python.NET] Finalizers and proper dereference of CPython objects
Tom Unger <tunger-KIqD/[email protected]> Fri, 1 Jun 2018 17:55:54 +0000
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <MW2PR1901MB21555B030B958787469B3E80D2620@MW2PR1901MB2155.namprd19.prod.outlook.com> |
PythonException, PyObjecdt, PyScope have finallizers defined as:
~PyObject()
{
// We needs to disable Finalizers until it's valid implementation.
// Current implementation can produce low probability floating bugs.
return;
Dispose();
}
So the finalizer does not call dispose. Does this mean that I must explicitly Dispose all such objects to ensure no memory leaks?
Thanks,
Tom
_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet