调试内存不足异常 [英] Debugging outofmemoryexception

查看:76
本文介绍了调试内存不足异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我制作的一个小型ASP.NET/C# Web应用程序的错误修复中,我遇到了OutOfMemoryException。

In the bug fixing of a small ASP.NET/C# web app I have made, I have encountered an OutOfMemoryException.

没有关于如何去哪里的提示。看起来这是一个编译时错误。如何诊断此异常?我假设这正是内存分析起作用的地方?有提示吗?

There is no tips as to where to look as this is a compile time error. How can I diagnose this exception? I am assuming this is exactly where memory profiling comes into play? Any tips?

谢谢

推荐答案

您应该进行内存转储程序在发生OutOfMemoryException的时间点进行分析,并分析占用了太多内存的内容。

You should take a memory dump of your program at the point in time OutOfMemoryException occurs and analyze what's taking up so much memory.

Tess Ferrandez的优秀的操作方法系列在她的博客上。

Tess Ferrandez has an excellent How-To series on her blog.

这篇关于调试内存不足异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆