Is it a bug? After imread cv crashes in mat.inl.hpp
When I try to open non existing file using imread it will crash
Unhandled exception at 0x00411c78 in ...exe ... 0xC00000 5 Access violation writing at location 0x00419257
mat.inl.hpp on line #681 u->refcount = -389532673 the non existent file is file = 0x0041b838 "../../data/subimage.jpg"
Visual Studio 2010, OpenCV 3.1
the error msg looks more like a linker problem, wrong debug/release libs, wrong crt, something like this.
anyway, please show your code, so folks here can try to reproduce it.
oh, and os/opencv version required, too ! ;)
ok, I have temporally uploaded my project here: https://sourceforge.net/projects/auto... move lena.jpg to folder ../../data/lena.jpg that is all. The file ../../data/subimage.jpg doesn't exist . First image will be loaded successfully. Second image is generated successfully. Third image is non existent and is crashes @berak version 3.1; tested on Visual Studio 2010