@WretchedSid

Memcopy seems to only work when the array index is under 314. I have no idea why that number, but using memcopy with a huge array works until the array index is over 314. Is this a memory problem?