Currently I have some code in C++ that makes callbacks to C# code. I pass in a function pointer (or a delegate in C#-speak) of a C# method into C++ and C++ just calls it whenever it needs to. Everything was fine until C++ had to pass an int array back to C# through the callback as an argument.

C# only sees the first element in the array and thinks that the array is of size 1. Is there any way to fix this? Any ideas?

Thanks in advance,