C ++内存泄漏 [英] C++ memory leaks

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

问题描述

是否有任何Visual C ++(或任何Win32 API)支持可用于检测函数调用之间的内存泄漏。

Is there any Visual C++(or any Win32 API) support available to detect memory leaks between function calls.

例如:

我创建了&销毁应用程序的API。

i have create & destroy API's for an application.

create() - 创建实例。

create() - creates the instances.

destroy() - 销毁实例。

destroy() - destroys the instances.

之后调用Create()& destroy()API,我只是想知道是否有任何内存泄漏?

After calling Create() & destroy() API's, i just want to know if there are any memory leaks?

是否有任何API可用于查找内存泄漏?

Is there any API's support available to find the memory leaks?

推荐答案


是否有任何Visual C ++(或任何可用于检测内存泄漏的Win32 API支持

Is there any Visual C++(or any Win32 API) support available to detect memory leaks

使用CRT库查找内存泄漏

https://msdn.microsoft.com/en-us/library/x98tx3cf(v = vs.140).aspx



- Wayne



Finding Memory Leaks Using the CRT Library
https://msdn.microsoft.com/en-us/library/x98tx3cf(v=vs.140).aspx

- Wayne


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

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