Skip to content

Stepping into a reverse P/Invoke using delegate interop crashes VS #126224

@jkoritzinsky

Description

@jkoritzinsky

Description

Stepping into a reverse P/Invoke from managed code crashes VS during step-in.

Reproduction Steps

The reproduction I used was the COMCallPrimitives library and trying to step into the callback in HostPolicyMock. Stepping into that callback causes VS2026 to crash.

Expected behavior

VS steps into and stops in the managed callback called from native code.

Actual behavior

VS freezes until it crashes and restarts.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions