Skip to content

[C#] Using C API fails at runtime when targeting .NET 4.7.2 #36812

@CurtHagenlocher

Description

@CurtHagenlocher

Describe the bug, including details regarding any error messages, version, and platform.

The code fails with an error message along the lines of "Cannot marshal 'parameter #1': Pointers cannot reference marshaled structures. Use ByRef instead."

Component(s)

C#

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions