使用 Visual Studio 2010 时出现 System.OutOfMemoryException

发布于 2024-09-27 08:52:01 字数 142 浏览 2 评论 0原文

当我的笔记本电脑中确实有很多未使用的内存时,我收到了名为“system.outofmemory.exception”的非常烦人的消息。除非我关闭并重新打开解决方案,否则它不会让我继续我的工作。

是否有任何配置或服务包可以解决该问题?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

罗罗贝儿 2024-10-04 08:52:01

我的解决方案在 Visual Studio 环境中运行良好。

但是当我尝试执行构建的项目时,我收到 System.OutOfMemoryException

几个小时后,我更改了我的 Comodo 防病毒设置。我将构建的解决方案作为可信文件。

之后我就不再遇到这个问题了。

也许它对你也有帮助...

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

筱果果 2024-10-04 08:52:01

尝试重新安装 VS 并运行内存检查。如果有任何更新能够纠正此类问题,它就会在 Microsoft Update 上变得同样重要,因此请务必运行它并选择所有标记为重要的更新。另外,检查以管理员身份运行 VS 是否可以解决问题,有时普通用户有一些限制(在企业网络上,IT 可能会限制程序的内存使用,并且 Windows 7 有一些新的安全策略,我不确定如何它们还可以工作,但是运行像管理员这样的程序通常可以解决问题)。

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).

清晰传感 2024-10-04 08:52:01

我每天在具有 4GB RAM(仅使用 3 个,obv)的 WinXP 上都会遇到此问题。一旦 VS 2010 Ultimate 的内存使用量接近 700 MB,我就开始出现 OutOfMemoryExceptions。唯一的救赎就是重新启动VS,即使我关闭了其他消耗内存的应用程序。我还注意到,如果我运行单元测试,问题会更快地出现。可能是因为这是一项内存密集型任务。

我在这里看到两个不同的问题。

  1. 当操作系统中确实有可用内存时,Visual Studio 会报告内存不足。
  2. 异常发生后,Visual Studio 进入故障状态,无法获取操作系统释放的新内存。

1)可能与操作系统相关,而不是与VS相关,我对Windows XP中的内存处理了解不够,无法确定这一点。我相信 2) 是一个 VS 问题,应该修复。

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.

皇甫轩 2024-10-04 08:52:01

重装VS是临时解决方案。只需增加您机器的虚拟内存大小即可。这解决了这个问题。

参考下面的链接 -
http://windows.microsoft.com /en-in/windows/change-virtual-memory-size#1TC=windows-7

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文