Skip to content

Assert failure in Finalizer.DisposeAll -> XDecref #1561

@lostmsu

Description

@lostmsu
Refcount(op)
0
new PyObject(new BorrowedReference(op)).GetPythonType()
<class 'CLR.CLR Metatype'>
    DebuggerDisplay: "<class 'CLR.CLR Metatype'>"
    Handle: 0x098c15b8
    IsDisposed: false
    Refcount: 23
    Reference: {Python.Runtime.BorrowedReference}
    obj: 0x098c15b8
    Results View: Expanding the Results View will enumerate the IEnumerable
    Dynamic View: Expanding the Dynamic View will get the dynamic members for the object
new PyObject(new BorrowedReference(op)).ToString()
"<class 'OverloadResolution'>"

This seems to indicate, that there's a reference count imbalance for reflected .NET types in some scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions