MFC应用程序中的GDI泄漏 [英] GDI Leak in MFC Application

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

问题描述

嗨!

我的MFC应用程序显示GDI泄漏,我已经用GDIView应用程序检查了GDI对象,这里的GDI Total相同,但是所有GDI(从GetGuiResource() API获得的GDI)都在增加.这是在显示模式对话框时发生的.

问候
Radhakrishnan G.

Hi!

My MFC application shows a GDI leak, I have checked GDI objects with GDIView application and here GDI Total is same, but All GDI (GDI obtained from GetGuiResource() API) is increasing. This occurred while displaying a modal dialog.

Regards
Radhakrishnan G.

推荐答案

好吧,因为您没有发布任何代码,所以我们只能说,要修复您的代码.

话虽如此,我认为这样的工具检测到的某些泄漏实际上并不是真实的.
Well, as you''re not posting any code, all we can do is say, fix your code.

Having said that, I think that some leaks detected by such tools are not real anyhow.


我要求您放置一段代码,以便将其可视化.根据我的理解,如果仅是显示模式对话框的问题,那么GDI泄漏就不会发生.我想这还不算什么.
I request you to put a piece a code, so that it could be visualized. As per my understanding, if it is only a matter of displaying modal dialog, then, GDI leak wouldn''t happen. I guess it is somthing else rather.


这篇关于MFC应用程序中的GDI泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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