CFileDialog and cvLoadImage - no memleak detection anymore

asked 2015-08-18 00:52:50 -0500

Hi I use opencv 210 and 230. I encountered a strange Problem that visual C++ (2005, 2010) does not recognize memleaks anymore when there is compilled cv code ( currently i trakced it down to cvLoadImage, maybe other calls also) and a runtime call to CFileDialog

I put a memleak right in InitInstance at the beginning like char* px = new char[1000]; which is not destroyed later.

With the compilled cv instruction, a later call like this

CFileDialog dlg(true); dlg.DoModal();

will produce no Output of the memleak ending the application (also vld does not!)

Any ideas? Thx 4 help Stefan

edit retag flag offensive close merge delete


please avoid IplImages and cv* functions. opencv moved away from the c-api 5 years ago, you must use the c++ api (cv::Mat, cv::imread()) today.

berak gravatar imageberak ( 2015-08-18 01:25:11 -0500 )edit