Ask Your Question

Abhi02's profile - activity

2015-10-03 00:26:54 -0600 answered a question Strange crashes during deallocation of std::vector (VS2015, Windows 7)

I was experiencing the same problem. I am using OpenCV 3.0.0 with Visual Studio 15 on Windows 10.

How i fixed it was by adding all the '.lib' files to the additional dependencies.

Goto Property Page -> select All configurations -> Linker -> input -> Add Additional Dependencies.

Now add all the '.lib' files irrespective of whether they end with 'd' or not.

Then run your program in RELEASE mode.

OpenCV 3.0.0 has only 4 dependencies- opencv_ts300.lib , opencv_ts300d.lib , opencv_world300.lib , opencv_world300d.lib

for OpenCV 2.4.11 the dependencies should be

opencv_calib3d2411d.lib

opencv_contrib2411d.lib

opencv_core2411d.lib

opencv_features2d2411d.lib

opencv_flann2411d.lib

opencv_gpu2411d.lib

opencv_highgui2411d.lib

opencv_imgproc2411d.lib

opencv_legacy2411d.lib

opencv_ml2411d.lib

opencv_nonfree2411d.lib

opencv_objdetect2411d.lib

opencv_photo2411d.lib

opencv_stitching2411d.lib

opencv_ts2411d.lib

opencv_video2411d.lib

opencv_videostab2411d.lib

opencv_calib3d2411.lib

opencv_contrib2411.lib

opencv_core2411.lib

opencv_features2d2411.lib

opencv_flann2411.lib

opencv_gpu2411.lib

opencv_highgui2411.lib

opencv_imgproc2411.lib

opencv_legacy2411.lib

opencv_ml2411.lib

opencv_nonfree2411.lib

opencv_objdetect2411.lib

opencv_photo2411.lib

opencv_stitching2411.lib

opencv_ts2411.lib

opencv_video2411.lib

opencv_videostab2411.lib

Yeah, this should work.