OpenCV尝试使用RELEASE构建读取视频时崩溃 [英] OpenCV crashes trying to read a video with RELEASE build

查看:881
本文介绍了OpenCV尝试使用RELEASE构建读取视频时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用

  VideoCapture vcc(someDir / someFile.avi); 

作为代码中的第一行(OpenCV 2.x,Win7,VS2010) RELEASE崩溃,但DEBUG工作正常..慢如预期。它只会在尝试读取视频文件时崩溃,这意味着将一个字符串传递给构造函数。



错误如下所示:


在0x00905a4d处的someName.exe中未处理的异常:0xC0000005:访问冲突。


我已尝试到目前为止:




  • 来自SVN的多个OpenCV2.x版本

  • / li>
  • 不同的视频文件

  • 有或没有CUDA,TBB,Eigen,...

$ b

解决方案


$ b

我甚至使用此单行创建了一个新项目。 >

好的...两个星期后解决我自己的问题。



我在项目中将项目选项With debugging information改为YES项目opencv_ffmpeg



有趣的是,现在运行with和without debugging时运行..这两个都没有工作。

p>

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 files
  • With or without CUDA, TBB, Eigen, ...

I even created a new project with this single line in it .. still crashes on RELEASE only.

解决方案

Alright .. Solved my own problem after two weeks.

I changed the project option "With debugging information" to YES in (sub)project opencv_ffmpeg (in solution OpenCV) for the RELEASE build.

Interestingly it works now for "with" and "without debugging" when running .. which both didn't work before.

这篇关于OpenCV尝试使用RELEASE构建读取视频时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆