$return = $function->Call(\$T,\$P); # CRASHES here for unknown reason