System.OutOfMemoryException when using Visual Studio 2010

Deadly 提交于 2019-12-06 20:46:10

问题


I am getting very annoying message called "system.outofmemory.exception" while I do have a lot of unused memory in my laptop. Unless I closed and re-opened the solution, it won't letting me to continue my work.

Is there any configuration or service pack that can fix the issue ?

Thanks


回答1:


Try reinstalling VS and run a memory check. If there's any update that is able to correct an issue like this, it's maked as important on Microsoft Update, so be sure to run it and select all the updates marked as important. Also, check if running VS as administrator solves the problem, sometimes a normal user has some limitations (on business' networks it's possible that the IT limits memory usage by program, and windows 7 has some new security policies that I'm not sure how they work yet but running a program like adminitrator usually solves the problem).




回答2:


My Solution was was fine in the Visual Studio environment.

But when I was trying to execute tha builded project I was getting System.OutOfMemoryException

After few hours I change the my Comodo Antivirus Settings. I made the builded solution as trusted file.

After that I did not have this problem any more.

Maybe it help you... too




回答3:


I have this issue on a daily basis on a WinXP with 4GB of RAM (only 3 utilized, obv). As soon as VS 2010 Ultimate closes onto 700 MB of memory usage, I start getting OutOfMemoryExceptions. Only redemption is to restart VS, even if I close other memory-consuming applications. I also notice that the problem sufaces faster if I run unit tests. Probably because this is a memory-intensive task.

I see two separate issues here.

  1. Visual Studio reporting out of memory when there really is available memory in the OS.
  2. Visual Studio goes into a malfunctional state after the exception, unable to acquire new memory freed by the OS.

1) may be OS-related and not VS, I don't know enough about memory handling in Windows XP to be sure about this. I belive 2) is a VS-problem and should be fixed.




回答4:


VS reinstallation is temporary solution. Jus increase your machine Virtual memory size. this resolves this issue.

ref below link - http://windows.microsoft.com/en-in/windows/change-virtual-memory-size#1TC=windows-7



来源:https://stackoverflow.com/questions/3910874/system-outofmemoryexception-when-using-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!