MFC应用程序上的Rational Purity(内存泄漏检测器) [英] Rational Purity(Memory Leak detector) on MFC application

查看:116
本文介绍了MFC应用程序上的Rational Purity(内存泄漏检测器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在MFC应用程序中找到可能的内存泄漏。我尝试过Rational Purify。我能够使用RATIONAL PURIFY启动控制台应用程序。但是当我使用Rational purify启动任何基于MFC的应用程序时,应用程序崩溃了。我想,崩溃是由于,Rational purify无法检测代码。



我使用基于MFC VC6对话框的应用程序进行测试,其中崩溃发生了。如果我们在没有Ration Purify的情况下启动,应用程序将启动。



我尝试了默认设置和以下链接中的设置。 http://www.ibm.com/developerworks/rational/library/07/0313_cherkasov/#



我们需要在项目设置中更改其他设置或在Rational Purify中?或者我错过了什么?



谢谢。

解决方案

对不起,我无法回答你的问题。问题,但这就是我们所做的:

多年来我们对MFC应用程序和Rational Purify的结果好坏参半。

现在我们使用Memory Validator - 没问题。

I am trying to find possible memory leaks in a MFC application. I tried Rational Purify. I was able to launch a console application using RATIONAL PURIFY. But when I launch any MFC based application using Rational purify, the application crashes. I suppose, the crash is due to, Rational purify can''t able to instrument the code.

I am using MFC VC6 dialog based application for testing purpose, where the crash occurs. If we launch without Ration Purify, application launches.

I tried the default settings and the settings in the below link. http://www.ibm.com/developerworks/rational/library/07/0313_cherkasov/#

Is there any other settings we need to change in Project Settings or in Rational Purify? or am I missing something?

Thanks.

解决方案

Sorry I can''t exactly answer your question, but here is what we did:
We had mixed results over the years with MFC applications and Rational Purify.
Now we use Memory Validator - no problems.


这篇关于MFC应用程序上的Rational Purity(内存泄漏检测器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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