[VideoCapture::open][Qt Creator]Debug Assertion Failed (unsigned)(c+1) <= 256
I try to use cv::VideoCapture::open("path to file"). Even though the program runs without errors in bebug mode, it gives below runtime error in release mode.
Debug Assertion Failed File: f:/dd/vctools/crt_bld/self_x86/src/isctype.c Line: 56
Expression: (unsigned)(c+1) <= 256
-----------------------------------------------pro file-------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = untitled TEMPLATE = app
SOURCES += main.cpp\ mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
INCLUDEPATH += C:/C/opencv/build/include INCLUDEPATH += C:/C/opencv/build/include/opencv
LIBS += C:/C/opencv/build/x86/vc10/lib/opencv_highgui240d.lib LIBS += C:/C/opencv/build/x86/vc10/lib/opencv_highgui240.lib
---------------------------------------------Erroneous line ---------------------------------------
vcap.open("C:/Users/ANURUDDHA/pedestrians/ped-crossing1.jpg"); // where cv::VideoCapture vcap;
error occurs ONLY IN RELEASE. It runs without errors in debug mode.
I have added C:\C\opencv\build\x86\vc10\bin; to system path which contains opencv_ffmpeg240.dll and other .dll
Really appriciate your kind assistance, will save a lot of time.. Thanks in advance.