cv::Mat OpenCV error

Jan 5, 2012 at 9:40am
hi, i have opencv2.1 and coding in Visual C++ 2010 Express in 64bit computer. I didn't have problems before, I could work my other codes, however the following simple code gives an error "Unhandled exception at 0x571365af (msvcr90d.dll) in cvMatExample.exe: 0xC0000005: Access violation reading location 0x6d622e65."


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "cvaux.h"
#include "highgui.h"
#include <stdio.h>

using namespace cv;
using namespace std;

int main(){

	Mat xxx;
	xxx= imread("frame.bmp",0);

	namedWindow("Result",CV_WINDOW_AUTOSIZE);
	imshow("Result", xxx);

	return 0;

}


so where exactly is the problem? or is cv::Mat not compatible with my computer? Thanks in advance.
Last edited on Jan 5, 2012 at 10:50am
Topic archived. No new replies allowed.