@Sandeepvd wrote:
Thanks, Rolf.
I also assume that I can pass a bigger size array safely (without any memory leak) into array pointer input variable, than the size of array data DLL is creating (in fact I must). This is because of of the point as in your mention about deallocation of memory.
regards.
Sandeep
Of course. You use in such cases always the biggest to be expected array size. The DLL does nothing with this array other than filling in as much data as it has available. On return the array is still the same length but really contains as many elements as the DLL filled in, with the rest being still the intial value, but since you configured the len parameter to be a return value too, you also know how many elements have been filled in. Now use a Resize Array node in the diagram to resize the array to the size effectively filled in by the DLL.
Rolf Kalbermatter
Message Edited by rolfk on 06-24-2005 03:10 PM
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390