I am trying to call an unmanaged C++ function, that has a structure as an input parameter. The structure is defined in the header file like this:
struct MySt
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst=150)] public char[] aaszNames;
That marshalling type looks well. Probably issue in function call, or bad memory allocation/