I sometimes get the below access violation error when running any of my OpenCV programs such as the simple one below.
I get this error: Exception thrown at 0x00007FF84AFAA74A (igdrcl64.dll) in OpenCV3_Template.exe: 0xC0000005: Access violation reading location 0x0000000000000994.
Here is my code, it is just a very simple program I made to demo the problem, it should just display the image.
This code sometimes runs fine and sometimes gives me the above error, can anyone help?
#include "opencv2\opencv.hpp"
using namespace cv;
int main(int argv, char** argc)
{
Mat test = imread("McLaren P1 Bahrain-773-crop5184x2670.jpg", CV_LOAD_IMAGE_UNCHANGED);
imshow("test", test);
waitKey();
}
Is the path of the image correct? Maybe you do not have permission to read image file.
read this
Just a small remark, reading images with spaces in its name is asking for issues. It is OS dependant behaviour so you should avoid it at all costs.
LBerger Thanks, working today but drivers have updated!
I had a same problem. I use nvidia graphic card, and intel graphic is integrated card in processor. Solution: I removed igdrcl64.dll from Windows/system32 and imshow in opencv doesn't have a problem now. ;-)
which is your computer ?