0

I have written a 64bit program which consumes a large bunk of memory. When it consumes several GB of memory, it causes an error on a new operator. But in fact there is still several GB of free memory on this machine to spend. And other program runs correctly with much more memory than this one. And I have enabled compilation option /Zm2000 and link option /LARGEADDRESSAWARE. What is the cause then?

4

1 回答 1

0

即使您还有几 GB 的空闲空间,您也必须记住,内存可能会变得支离破碎。如果没有可用于满足您的请求的连续块,则分配将失败并出现异常。

于 2013-02-22T02:24:07.877 回答