M
Mircea Dragan
Hi,
I have a problem. Here is the description:
I have a dll which I call from a C# program. The C# program passes an
array
of doubles to the dll function. Everything works fine as long as I don't
change
any array element in the dll function.
The problem comes into picture when I want to change the values of the
array in the dll.
When the function returns, the array in the C# program is truncated to
only one element
(the first one).
I want to send two arrays of double, one of them which is not changed
and one of them
which is changed in the dll (its elements are computed by the dll
function). When the
dll function returns, both arrays are truncated to one element. Only the
first element
remains, all the others are gone.
I checked in the dll function, and everything works fine there.
Does somebody have a solution?
Thank you!
Mircea Dragan
I have a problem. Here is the description:
I have a dll which I call from a C# program. The C# program passes an
array
of doubles to the dll function. Everything works fine as long as I don't
change
any array element in the dll function.
The problem comes into picture when I want to change the values of the
array in the dll.
When the function returns, the array in the C# program is truncated to
only one element
(the first one).
I want to send two arrays of double, one of them which is not changed
and one of them
which is changed in the dll (its elements are computed by the dll
function). When the
dll function returns, both arrays are truncated to one element. Only the
first element
remains, all the others are gone.
I checked in the dll function, and everything works fine there.
Does somebody have a solution?
Thank you!
Mircea Dragan