c++ pro. compiles & links, but does not run (-1073741515 (0xc0000135).
Please, any ideas somebody, what to do about this problem?
I have a programme (Visual C++ 2010, Windows 7 64bit, Openc 243), tha uses some simple functions from highgui. It compiles and links without problem, but when started, immediately crashes with error code 1073741515 (0xC0000135) when debugged and does not even start, when the EXE is called from the CMD window.
Anybody any idea, wht might be wrong in my configuration. (I am using the headers and binaries from the opencv/build/... subdirectories, for the headers the opencv2 stuff, for the binaries the X86 V10 stuff.
After having tried every combination of headers binaries and DLLs with no success, I am rather frustrated and would need some directions, where to look at.
Many thanks, Christian
P.S.: Here all the details, if you mind/need:
..........................................
Problem: I am trying to write my first programme, using openCV. To first use some primitive openCV functions (out of HIGHGUI) I have linked the compiler to all necessary headerfiles, as well as I have directed the Linker to the X86-LIB files and it does compile with no error. The respective source code reads:
include ...
using namespace std;
int main () { IplImage* img = cvLoadImage( "c:M/pic.tif"); cvNamedWindow("Windowtitle", CV_WINDOW_AUTOSIZE); cvShowImage( "Windowstitle", img); cvWaitKey(0); cvReleaseImage(&img); cvDestroyWindow("Windowtitle");
....
I hope, that I have used the correct headers (.h, *.hpp files) and the correct binaries (.lib) files. In fact, what I have used is:
... opencv/build/x86/vc10/lib/ for the binaries ... opencv/build/include/opencv2/... for the headers (for ease of reference, I have copied all these files into 2 seperate directories (c:opencv/myopercv/...), which I direct the comiplr and linker towards).
An EXE File exists after successful compilaton and link.
When executing this file from EXPLORER, the Command window (?) shows up momentarily and then disappears, thats all. If started from the CMD window itself, the system says, the EXE File 'is not recognized as an internal or external command, operable program or batch file' and doesn't start the programme.
When I try to debug, the system reacts with ... 'Slitcan_V2.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\Slitcan_V2\Debug\Slitcan_V2.exe', Symbols loaded. 'Slitcan_V2.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'Slitcan_V2.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'Slitcan_V2.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file The program '[5076] Slitcan_V2.exe: Native' has exited with code -1073741515 (0xc0000135).
According to my VC++ Linker, the (automatically generated) load command looks like this:
/OUT:"C:\Users\User\documents\visual studio 2010\Projects\Slitcan_V2\Debug\Slitcan_V2.exe" /VERBOSE /INCREMENTAL /NOLOGO /LIBPATH:"C:\OpenCV\myopencv\binary\v10\bin" /LIBPATH:"C:\OpenCV\myopencv\binary\v10\lib" "opencv_calib3d243d.lib" "opencv_contrib243d.lib" "opencv_core243d.lib" "opencv_features2d243d.lib" "opencv_flann243d.lib" "opencv_gpu243d.lib" "opencv_highgui243d.lib" "opencv_imgproc243d.lib" "opencv_legacy243d.lib" "opencv_ml243d.lib" "opencv_nonfree243d.lib" "opencv_objdetect243d.lib" "opencv_photo243d.lib" "opencv_stitching243d.lib" "opencv_ts243d.lib" "opencv_video243d.lib" "opencv_videostab243d.lib" "opencv_calib3d243.lib ...