Why am I getting an Out Of Memory Exception in my C# application?

后端 未结 7 1329
梦谈多话
梦谈多话 2020-11-30 00:08

My memory is 4G physical, but why I got out of memory exception even if I create just 1.5G memory object. Any ideas why? (I saw at the same time, in the performance tab of t

7条回答
  •  萌比男神i
    2020-11-30 00:31

    On a 32-bit Windows Operating system the maximum 'user-mode' memory that a single application can access is 2GB... assuming that you have 4GB of memory on the box.

    Unmanaged VC++ Application's memory consumption on windows server

    http://blogs.technet.com/markrussinovich/archive/2008/07/21/3092070.aspx

    (It's funny you asked this because I asked almost the same thing yesterday...)

提交回复
热议问题