Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

imwrite exception 0xC0000005 C++

Dear all,

I am new to OpenCV and tried to create a simple opencv application using OpenCV31 under Visual Studio Community 2015. I created a Win32 consoloe application, here is my code:

int main(int argc, char* argv[])
{
Mat testImg(50, 50, CV_8U);
imwrite("C:\Users\Me\TestOut.jpg", testImg);
return 0;
}

But if I run this I get an Access violation:

Exception at 0x00007FFAC9994D61 (opencv_world310.dll) 0xC0000005: Access violation on reading on position 0x00000201A183B000.

What goes wrong here?

Thanks for any help!

VS 2015 C++ imwrite exception 0xC0000005 C++0xC0000005

Dear all,

I am new to OpenCV and tried to create a simple opencv application using OpenCV31 under Visual Studio Community 2015. I created a C++ Win32 consoloe console application, here is my code:

int main(int argc, char* argv[])
{
Mat testImg(50, 50, CV_8U);
imwrite("C:\Users\Me\TestOut.jpg", testImg);
return 0;
}

But if I run this I get an Access access violation:

Exception at 0x00007FFAC9994D61 (opencv_world310.dll) 0xC0000005: Access violation on reading on position 0x00000201A183B000.

What goes wrong here?

Thanks for any help!

VS 2015 C++ imwrite exception 0xC0000005

Dear all,

I am new to OpenCV and tried to create a simple opencv application using OpenCV31 under Visual Studio Community 2015. I created a C++ Win32 console application, here is my code:

int main(int argc, char* argv[])
{
Mat testImg(50, 50, CV_8U);
imwrite("C:\Users\Me\TestOut.jpg", testImg);
return 0;
}

But if I run this I get an access violation:

Exception at 0x00007FFAC9994D61 (opencv_world310.dll) 0xC0000005: Access violation on reading on position 0x00000201A183B000.

This happens if I use Visual Studio 2015 with Debug settings. If I switch to Release settings then the code works!?!

What goes wrong here?

Thanks for any help!