- Notifications
You must be signed in to change notification settings - Fork749
Closed
Description
Environment
- Pythonnet version: master
- Python version: any
- Operating System: any
Details
- Initialize
Runtime
- Create a few
PyObject
s, keep them somewhere - Shutdown
Runtime
- Initialize
Runtime
the second time - Clear all alive reference to objects from step 2.
- Call
GC.Collect
andWaitForPendingFinalizers
Expected:XDecref
should never be called on the handles inPyObject
s from step 2.
Actual:XDecref
is called on the handles inPyObject
s from step 2.
I saw this happen even to .NET types reflected to Python likeSystem.MulticastDelegate
. Will soon open a PR with repro.
Metadata
Metadata
Assignees
Labels
No labels