Code:
system("pause");
I'd suggest not using the system function as much as possible (just words of advice).

Only thing I can think of that might be happening is for some reason array1 isn't being given all the memory you're asking for? You're asking for a 3.8 MB array, so possibly it's not getting a valid pointer (for some reason).