关于在Opencv中使用Release、imread时候出现,错误

0x5a6f37ff (msvcr100d.dll) 处有未经处理的异常: 0xC0000005: 读取位置 0x706d622e 时发生访问冲突

关于在Opencv中使用Release、imread时候出现,错误_第1张图片

使用imread("test.bmp");发生错误:

错误原因为我们在配置opencv的时候直接将debug版本和release版本的lib一起包含进去

解决方法:

分别包含,release和debug版本的库文件


vs2010 opencv2.4.9配置属性表:

debug:

opencv_ml249d.lib
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_objdetect249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_nonfree249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_videostab249d.lib

release:

opencv_objdetect249.lib
opencv_ts249.lib
opencv_video249.lib
opencv_nonfree249.lib
opencv_ocl249.lib
opencv_photo249.lib
opencv_stitching249.lib
opencv_superres249.lib
opencv_videostab249.lib
opencv_calib3d249.lib
opencv_contrib249.lib
opencv_core249.lib
opencv_features2d249.lib
opencv_flann249.lib
opencv_gpu249.lib
opencv_highgui249.lib
opencv_imgproc249.lib
opencv_legacy249.lib
opencv_ml249.lib

你可能感兴趣的:(关于在Opencv中使用Release、imread时候出现,错误)