Because I'm assuming you tried to allocate 4 TB of ram somewhere in your program...
Looks like you used new incorrectly. - Why are you trying to allocate 4 gigs of ram at once?
Just a comment:
4294967295 = 0xFFFFFFFF
As Unsigned Int32 = 4294967295
As Signed Int32 = -1
Post code of where the error happens please.