在vs2010下使用opencv,release出错。求大神啊This may be due to a corruption of the heap
使用opencv进行图像、矩阵的处理。
CvMat *reult;
IplImage * img;
....
.....
//处理操作进行完之后
cvReleaseMat( &result );
cvReleaseImage(&img);
出现错误:
Windows has triggered a breakpoint in MDIDocvw.exe.
This may be due to a corruption of the heap, which indicates a bug in MDIDocvw.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while MDIDocvw.exe has focus.
The output window may have more diagnostic information.
查一下有人说是因为之前使用了new/malloc破坏了内存,后来又使用了这段被破坏的内存导致?
请问:
原因是这样的吗?要怎样才能解决呢?
求大神
求大神