Compiler error with transferring dynamic arrays???