I need to handle 3D cube data. Its number of elements can be several billions. I understand I can\'t allocate that much memory on Windows. So I am thinking disk-based operat
try VirtualAlloc from .
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366887%28v=vs.85%29.aspx
its quite useful for large arrays as long as they fit in your RAM, after that 0xC0000022L's answer is probably the better solution