I am trying to define an array of 2G bytes:
Code:
byte[] arr = new byte[2000000000];
But it throws an OutOfMemoryException. I can't create an array of more than 1.2GB.

I understand that each process gets its share of the virtual memory. But I also know that the maximum virtual memory for a process is 4GB.

How do I make it work?
(Please don't tell me to allocate less memory )