Ask Your Question

VideoCapture Release Mode

asked 2013-06-06 06:15:27 -0500

updated 2013-06-06 06:21:36 -0500

berak gravatar image

Hi, I am using W7/32bits with VC++ 2010, Opencv 2.0 The command "VideoCapture constructor", written like in the sample below, works fine under Debug version and crashes under release.

#include <stdio.h>
#include <tchar.h>
#include "cv.h"
#include "highgui.h"
using namespace cv;

int _tmain(int argc, _TCHAR* argv[]){
    VideoCapture capture("video.avi"); //320X240, 50 fps, 
     if(!capture.isOpened()) return 0;  
return 0;

please help

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-06-06 06:30:21 -0500

updated 2013-06-06 06:30:57 -0500

Did you change your linker settings to include the release libraries in stead of the debug libraries? They won't work cross-using both of them.


opencv_core245d.lib --> debug library

opencv_core245.lib --> release library

Also try using an absolete path to adress your video first.

edit flag offensive delete link more

answered 2013-06-11 09:00:55 -0500

Thamks for your answer, Steven Newby OpenCV, I don't remember if I did the mistake you are evoking. I decided to download the OpenCV 2.4.5. This pbm is OK with this version

BUT, I have a new concern: release mode works fine in the test soft and the main soft.

In the debug version, I get the compiler error: "c:\program files\opencv2.4.5\build\include\opencv2\flann\any.h(70): error C2061: syntax error : identifier 'dest' : while compiling class template member function 'void cvflann::anyimpl::small_any_policy<t>::copy_from_value(const void ,void *)' 1> with 1> [ 1> T=const char * 1> ]"

Can you help me?

edit flag offensive delete link more


New problems are posted in a new question. Else the structure of a Q&A forum will get messed up. Please remove your post and add it as a new problem.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-13 08:09:23 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-06-06 06:15:27 -0500

Seen: 1,305 times

Last updated: Jun 11 '13