中北街 2014-12-24 01:54 采纳率: 0%
浏览 1649

全局队列内存泄露问题

#include "stdafx.h"
#define _CRTDBG_MAP_ALLOC
#include<stdlib.h>
#include<crtdbg.h>

#include <deque>
using std::deque;

deque<int> des;

int _tmain(int argc, _TCHAR* argv[])
{
_CrtDumpMemoryLeaks();
return 0;
}

OUTPUT如下:
“123.exe”: 已加载“E:\projects\LocoLibraryMge\Debug\123.exe”,已加载符号。
“123.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\msvcp100d.dll”,已加载符号。
“123.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。
Detected memory leaks!
Dumping objects ->
{183} normal block at 0x003782D0, 8 bytes long.
Data: < > A0 D1 A5 00 00 00 00 00
Object dump complete.
程序“[4984] 123.exe: 本机”已退出,返回值为 0 (0x0)。

  • 写回答

3条回答 默认 最新

  • 中北街 2014-12-24 01:56
    关注

    **#include "stdafx.h"
    #define _CRTDBG_MAP_ALLOC
    #include
    #include

    #include
    using std::deque;

    deque des;

    int _tmain(int argc, _TCHAR* argv[])
    {
    _CrtDumpMemoryLeaks();
    return 0;
    }**

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序