可能的内存泄漏 [英] Possible Memory Leaks

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

问题描述


我的新编译程序存在问题。


它一直占用内存,直到最终几乎所有的内存。


为了检查是否存在内存泄漏,我运行了Perfmon.exe并添加了计数器来检查所有堆中的专用字节数和字节数。


但结果显示稳定使用而根本没有增量。


看来根本没有内存泄漏,但内存使用量不断增加。 / p>

有没有人知道最新情况?


谢谢。

解决方案

听起来有内存泄漏。 你知道,因为内存使用量不断增加。


我建议你单独测试部分应用程序。 尝试找到泄漏。


Hi,

I am having an issue with my newly compiled program.

It keeps taking up memory till it eventually took up almost all of my memory.

To check if there is a memory leak, I have run Perfmon.exe and added counters to check for Private Bytes and Bytes in all Heaps.

But the results show a stable usage with no increments at all.

It appears that there is no memory leak at all but the memory usage keeps increasing.

Does anyone have an idea of whats going on?

Thanks.

解决方案

Sounds like you have a memory leak.  You know because memory usage keeps increasing.

I suggest you test parts of your app in isolation.  Try to find the leak.


这篇关于可能的内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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