I have a C++ DLL. This DLL contains a function func ( float **arg1, int &nbArg1, int **arg2, int &nbArg2 ); This function do dynamic memory allocation to allocate enough of memory for arg1 and arg2. I'm looking for a way to call this function in a C## program and be able to access data in arg1 and arg2.
Thank you for your information. I have finally found a walk around by adding function in the dll that can return size of returned structures. In this way I preallocate arrays. This walk around works in the current situation because I have control on both C++ dll and C## code.