Skip to content

ClassManager illegally decrefed ClassObject's refcount on shutdown#1563

Merged
lostmsu merged 1 commit intopythonnet:masterfrom
losttech:class-refcount-shutdown
Sep 22, 2021
Merged

ClassManager illegally decrefed ClassObject's refcount on shutdown#1563
lostmsu merged 1 commit intopythonnet:masterfrom
losttech:class-refcount-shutdown

Conversation

@lostmsu
Copy link
Member

@lostmsu lostmsu commented Sep 22, 2021

Does this close any currently open issues?

#1561

Any other comments?

Long term we should switch ManagedType and other classes, that hold long-lived references to Python objects to use PyObject. This would make any code, that uses them refcount-balanced automatically.

See #1562

Checklist

  • Make sure to include one or more tests for your change

@lostmsu lostmsu force-pushed the class-refcount-shutdown branch from be2eefa to 9616a6f Compare September 22, 2021 17:10
@lostmsu lostmsu merged commit 2679c19 into pythonnet:master Sep 22, 2021
@lostmsu lostmsu deleted the class-refcount-shutdown branch September 22, 2021 17:22
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.

1 participant