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#