VS2012 释放vector内存时候出错,不知道什么问题
HEAP[MWO3.exe]: Invalid address specified to RtlValidateHeap( 00690000, 033216A0 )
MWO3.exe 已触发了一个断点。
Debug Assertion Failed!
Program: E:\opencv_vs2012\MyWrite\MyWriteOpencv3\Debug\MWO3.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322
Expression: _CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
线程 0x1c48 已退出,返回值为 3 (0x3)。
线程 0x1d50 已退出,返回值为 3 (0x3)。
线程 0x1c78 已退出,返回值为 3 (0x3)。
线程 0x1ebc 已退出,返回值为 3 (0x3)。
线程 0x1f3c 已退出,返回值为 3 (0x3)。
线程 0x1d20 已退出,返回值为 3 (0x3)。
线程 0x141c 已退出,返回值为 3 (0x3)。
线程 0x1c58 已退出,返回值为 3 (0x3)。
线程 0x1164 已退出,返回值为 3 (0x3)。
程序“[6264] MWO3.exe”已退出,返回值为 3 (0x3)。
错误码,程序没错,在最后return的时候出错,似乎是释放内存的问题。
使用vector<Mat>().swap(projections);提前释放内存也是错的,找到具体条目,可惜无法放弃不用。。。
MWO3.exe 已触发了一个断点。
Debug Assertion Failed!
Program: E:\opencv_vs2012\MyWrite\MyWriteOpencv3\Debug\MWO3.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322
Expression: _CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
线程 0x1c48 已退出,返回值为 3 (0x3)。
线程 0x1d50 已退出,返回值为 3 (0x3)。
线程 0x1c78 已退出,返回值为 3 (0x3)。
线程 0x1ebc 已退出,返回值为 3 (0x3)。
线程 0x1f3c 已退出,返回值为 3 (0x3)。
线程 0x1d20 已退出,返回值为 3 (0x3)。
线程 0x141c 已退出,返回值为 3 (0x3)。
线程 0x1c58 已退出,返回值为 3 (0x3)。
线程 0x1164 已退出,返回值为 3 (0x3)。
程序“[6264] MWO3.exe”已退出,返回值为 3 (0x3)。
错误码,程序没错,在最后return的时候出错,似乎是释放内存的问题。
使用vector<Mat>().swap(projections);提前释放内存也是错的,找到具体条目,可惜无法放弃不用。。。
...全文
相关推荐
VS2012中文语言包
VS2012,语言包 ,这是一个VS2012 的中文语言包,下在后直接运行 会自动安装的。
vs2012 中文包下载
语言包是在线安装版 , vs11安装大概20分钟左右, 汉化安装差不多也20分钟(看电脑的速度和网速)
vs2012 安装SVN插件
VS下的SVN插件,亲测VS2012可用。 新手提示:安装后要到 工具->选项->源代码管理->插件选择 中启用
vs2003移植到vs2012需要注意的几个问题
项目要求把vs2003的老代码移植到vs2012上,期间遇到一些问题,现主要把几个重点问题总结出来,以后遇到此问题,方便查询。
vs内存泄漏检测工具
使用Visual Leak Detector,检测vs项目中可能存在的内存泄漏。自己在win7系统,vs 2012下检测可用,其它版本vs应该也没问题。


VC.NET
