I'm sure I saw this happening to me once. In a 64-bit OS with 8 GB of RAM, I would still get an Exception when an array will be ca. 2 GB. What's the exception name?
Please, don't tell me that my program is bad because I shouldn't be doing that. Believe me, it was required.
EDIT: The program was running as a 64-bit process.