ProArray allocated in the ProTkdllFunction like this:
status = ProArrayAlloc(1, sizeof(ProArgument), 1, (ProArray*)outputs);
for the function's output arguments. These output arguments need to be free'ed once after being used.
The question is: How can the Web.Link caller do the ProArrayFree() or ProArgumentProarrayFree()?
If I understand your question correctly....
// init with values
var myArr = [1,2,3,4,5];
// to clear it...
var myArr = ;
If the suggestion is actually on the correct direction, we probably can try to 'delete' that returned object? Delete it and its destructor magically do the right things to call ToolKit to release the memory?
Looks like no needed to free the array.
I saved pointer to the array in to global variable and was try to free it at user_terminate() function. But memory was changed before and I got PRO_TK_BAD_INPUTS.