Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access Violation by reading msvcr120d.dll VC12

Hello guys,

I'm using Visual Studio 2013. I have a x64 System with Visual Studio 2013 -> VC12 and OPENCV 2410. I get a access violation error by reading msvcr120d.dll.

I have hardcoded the path to the library and include folder for testing. Also the path to the image. So opencv is set in C:\opencv

Set the configs to: Added user variable with name "OPENCV_DIR" and path "C:\opencv\build\x86\vc12" Added the bin-path to system's path environment variable: %OPENCV_DIR%\bin Compiler -> General -> Additional libraries: C:\opencv\build\include Linker -> General -> Additional libraries: C:\opencv\build\x86\vc12\lib Linker -> Input : opencv_core2410d.lib opencv_imgproc2410d.lib opencv_highgui2410d.lib opencv_ml2410d.lib opencv_video2410d.lib opencv_features2d2410d.lib opencv_calib3d2410d.lib opencv_objdetect2410d.lib opencv_contrib2410d.lib opencv_legacy2410d.lib opencv_flann2410d.lib

This is my test code:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv)
{    
    String path = "Capture.PNG";
        Mat image = imread(path, IMREAD_COLOR); // Read the file

    waitKey(0); // Wait for a keystroke in the window
    return 0;
}

Access Violation by reading msvcr120d.dll VC12

Hello guys,

I'm using Visual Studio 2013. I have a x64 System Windows 7 with Visual Studio 2013 -> VC12 and OPENCV 2410. I've done the following steps for another x64 System with VC12 and OPENCV 2410, but Windows 8.1. The code works fine on the last named machine.

But I get a access violation error by reading msvcr120d.dll.msvcr120d.dll on the first one.

I have hardcoded the path to the library and include folder for testing. Also the path to the image. So opencv is set in C:\opencv

Set the configs to: Added user variable with name "OPENCV_DIR" and path "C:\opencv\build\x86\vc12" Added the bin-path to system's path environment variable: %OPENCV_DIR%\bin Compiler -> General -> Additional libraries: C:\opencv\build\include Linker -> General -> Additional libraries: C:\opencv\build\x86\vc12\lib Linker -> Input : opencv_core2410d.lib opencv_imgproc2410d.lib opencv_highgui2410d.lib opencv_ml2410d.lib opencv_video2410d.lib opencv_features2d2410d.lib opencv_calib3d2410d.lib opencv_objdetect2410d.lib opencv_contrib2410d.lib opencv_legacy2410d.lib opencv_flann2410d.lib

This is my test code:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv)
{    
    String path = "Capture.PNG";
        Mat image = imread(path, IMREAD_COLOR); // Read the file

    waitKey(0); // Wait for a keystroke in the window
    return 0;
}

Access Violation by reading msvcr120d.dll VC12

Hello guys,

I'm using Visual Studio 2013. I have a x64 Windows 7 with Visual Studio 2013 -> VC12 and OPENCV 2410. I've done the following steps for another x64 System with VC12 and OPENCV 2410, but Windows 8.1. The code works fine on the last named machine.

But I get a access violation error by reading msvcr120d.dll on the first one.

I have hardcoded the path to the library and include folder for testing. Also the path to the image. So opencv is set in C:\opencv

Set the configs to: to:

Added user variable with name "OPENCV_DIR" and path "C:\opencv\build\x86\vc12" "C:\opencv\build\x86\vc12"

Added the bin-path to system's path environment variable: %OPENCV_DIR%\bin %OPENCV_DIR%\bin

Compiler -> General -> Additional libraries: C:\opencv\build\include C:\opencv\build\include

Linker -> General -> Additional libraries: C:\opencv\build\x86\vc12\lib C:\opencv\build\x86\vc12\lib

Linker -> Input :

opencv_core2410d.lib opencv_imgproc2410d.lib opencv_highgui2410d.lib opencv_ml2410d.lib opencv_video2410d.lib opencv_features2d2410d.lib opencv_calib3d2410d.lib opencv_objdetect2410d.lib opencv_contrib2410d.lib opencv_legacy2410d.lib opencv_flann2410d.lib

This is my test code:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv)
{    
    String path = "Capture.PNG";
        Mat image = imread(path, IMREAD_COLOR); // Read the file

    waitKey(0); // Wait for a keystroke in the window
    return 0;
}