Re: [Python.NET] Finalizers and proper dereference of CPython objects
Denis Akhiyarov <[email protected]> Thu, 7 Jun 2018 22:18:28 -0500
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CALxxJLQd5k0hikWBQqHyZfqztf6awt3BoK_B2=2b6YoMEdmYxQ@mail.gmail.com> |
There is a fix for this but the code review and merging of related PR is not complete yet: https://github.com/pythonnet/pythonnet/issues/541 On Fri, Jun 1, 2018, 12:56 PM Tom Unger <tunger-KIqD/[email protected]> wrote: > > > 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 > _________________________________________________ Python.NET mailing list - [email protected] https://mail.python.org/mailman/listinfo/pythondotnet