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 ?