Ask Your Question
0

vs studio debug mode gives me problem at glob

asked 2016-12-20 08:51:08 -0600

Nbb gravatar image

I have this problem in debug mode of visual studio that I have been unable to solve. This line

cv::glob(imageL_folder, imageL_filenames);

gives me an error

Exception thrown at 0x00007FF9A4CF87F8 (opencv_core310.dll) in Stereo.exe: 0xC0000005: Access violation writing location 0x0000023DFDFDFDF9.

If there is a handler for this exception, the program may be safely continued.

The problem is that it works fine in release mode i.e. the filenames are being read. I googled but got no better clue on whats causing the problem. Does anyone have any suggestions ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-20 09:00:43 -0600

berak gravatar image

updated 2016-12-20 10:50:42 -0600

wait, that's not an opencv exception, but one from your os.

please check, if you accidentally use opencv release libs with debug mode. (opencv_core310.dll sounds much like this. debug should be opencv_core310d lib/dll, same goes for all other opencv libs, ofc.)

(cv::glob() actually throws a cv::Exception, if the folder does not exist, but you can catch() that.)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-20 08:51:08 -0600

Seen: 637 times

Last updated: Dec 20 '16