I am trying to pass a C# array of strings to a Fortran DLL.
So far, passing a single string is successful. The problem arises when the using a string array, in that only the first array index can be read. I can successfully pass an array in type int or float and iterate over the arrays in the Fortran code.
I have tried using the StringBuilder but this has the same result. Ideally, I would declare a new struct type with a mixture of types (including string) and pass a struct array as a parameter.
Any help, source code examples would be greatly appreciated.