> Is there a way to go from a pointer to an unmanaged array of double to a
> managed Array of Double without having to copy the values? The unmanaged
[quoted text clipped - 9 lines]
>
> _delegate void func(Double x[])
You need to allocate the array in managed code in the first place, then you
can get a double __in* pointing into the managed array that can be passed to
your native code.
If the array must be allocated by native code, there's no way to reflect it
into the managed world as an array without copying the values, AFIAK
(although I do recall reading discussion of possibly adding such a facility
to the CLR, I don't think it was ever done).
-cd