我最近安裝了OpenCV2.0 2008專業版,建庫,DLL-S和得到的一切工作,但是當我運行的第一個例子程序:打開CV + Visual Studio 2008中的Visual Studio下奇怪的調試問題
#include 「highgui.h」
int main(int argc, char** argv) {
IplImage* img = cvLoadImage(argv[1]);
cvNamedWindow(「Example1」, CV_WINDOW_AUTOSIZE);
cvShowImage(「Example1」, img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow(「Example1」);
}
,它直接進入調試模式,以下情況例外:Unhandled exception at 0x7855b9f0 in HelloOpenCV.exe: 0xC0000005: Access violation reading location 0x00000000.
也切換到「loadsave.cpp」文件,並將其指向行:
return (IplImage*)cv::imread_(filename, iscolor, cv::LOAD_IMAGE);
在堆棧指針:> highgui200.dll!cvLoadImage(const char * filename=0x00000000, int iscolor=1) Line 474 + 0x13 bytes C++
我也做了PRINTSCREEN與Visual Studio調試窗口link text
我相信它是與錯位的依賴關係,與DLL-S的問題。 如果有人知道我能做些什麼來解決這個問題,請回答,我將永遠感激。
謝謝, 亞歷克斯