Skip to content

[Mono] Handle resurrection for marshalled delegates #99478

Open
@jkotas

Description

See disabled GetDelegateForFunctionPointer_Resurrection test added in #99185

Fails with:

Unhandled Exception:
Xunit.Sdk.SameException: Assert.Same() Failure: Values are not the same instance
Expected: Action { Method = Void wrapper_native_0xffffa4edbc18(), Target = null }
Actual:   Action { Method = Void SomeFunction(), Target = FreachableObject { } }
   at Xunit.Assert.Same(Object expected, Object actual) in /_/src/Microsoft.DotNet.XUnitAssert/src/IdentityAsserts.cs:line 55
   at System.Runtime.InteropServices.Tests.GetDelegateForFunctionPointerTests.FreachableObject.Finalize()

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions