MFC MDI子内存泄漏 [英] MFC MDI child memory leak

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

问题描述

你好

我用Visual Studio 2005 Professional创建了一个MFC MDI应用程序.关闭MDIchild窗口后,为农产品保留的内存将不可用.我们将在更长的时间内使用该应用程序,然后内存消耗将增加到大约 1 GB的应用程序崩溃.我注意到其他MDI应用程序中的行为相同.关闭子窗口后,如何使Windows或我的应用程序释放MDI子窗口的内存.

I created an MFC MDI application with Visual Studio 2005 Professional. Once an MDIchild window is closed, the memory reserved for produce not become available. We will use the application over a longer period then the memory consumption increases to about one gigabyte to the application crashes. I've noticed the same behavior in other MDI applications. How can I get Windows or my application to free the memory of an MDI child window when the child window is closed.

最诚挚的问候,

vweber

推荐答案

您如何知道内存泄漏?也许其他软件会钩住WM_CLOSE消息,以使应用程序崩溃.您需要更改一个清晰的系统,然后重试.

how do you know the memory leak? Maybe other software hook the WM_CLOSE message, so that you get the application crashes. You need change a clear system and try again.

 


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

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