Hello,
Please have a look at this answer: arrays - Marshall double[] to IntPtr in C#? - Stack Overflow
Hth, Lucas