To allocate memory in managed code, I use:
IntPtr [] params_list_n = new IntPtr [5];
But for unmanaged memory, I use Marshal.AllocHGlobal
And I do not understand how in this case to allocate memory for the array.
Ideally, I want to use a function call Marshal.GetNativeVariantForObject (o, params_list_n[i]);
for each element of an array.
Mixer source
share