I have some problems running a test that creates a very large array of bytes (~ 4 GB).
When I run it in release / debug mode, everything works fine, but when I run a test that initializes this array, I get an OutOfMemory exception
for (int i = 0; i < 56000; i++) { m_BlocksFree.Enqueue(new byte[65536]); }
At first I thought, since I have many tests that initialize this large array, then I get an exception from memory, but even when I run one test, I get the same exception.
Im writing in C # and working with MSTest, Rhinomocks and structureMap, win7 64bit.
Thanks for the helpers :)
source share