OpenCV crashes trying to read a video with RELEASE build
问题 Using VideoCapture vcc("someDir/someFile.avi"); as the first line in my code (OpenCV 2.x, Win7, VS2010), the execution for RELEASE crashes but the DEBUG works fine .. as slow as expected though. It only crashes when trying to read a video file which means passing a string to the constructor. The error looks like this: Unhandled exception at 0x00905a4d in someName.exe: 0xC0000005: Access violation. What I've tried so far: Multiple OpenCV2.x versions from SVN Different computer Different video