Exception thrown at 0x00007FFFE5728E6C in Demo.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000D971A6F210. [closed]

asked 2019-01-22 08:34:26 -0600

jody gravatar image

I am trying OpenCV 4 with Visual Studio 17 on Windows 8, testing for some simple codes as below:

Mat dst, cdst;
Canny(src, dst, 50, 200, 3); 
cvtColor(dst, cdst, COLOR_GRAY2BGR);

Libraries: opencv_world401.lib;opencv_world401d.lib

Please advise me for the above error, I checked all path & dependencies in configuration. Please help me!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2019-01-23 02:24:09.514660

Comments

please link onlyopencv_400.lib to the RELEASE version of your program, and the opencv_400d.lib to your DEBUG version, NOT BOTH

berak gravatar imageberak ( 2019-01-22 08:38:00 -0600 )edit

Problem resolved. Thank you so much!

jody gravatar imagejody ( 2019-01-22 19:31:07 -0600 )edit