Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

New to OpenVC, error 0xc0000005 running demhist.cpp(and most others)

Hello, I am new a to opencv and i have downloaded opencv 2.4.4 and incorporated it with code::blocks. The opencv folder is on my desktop and i have added the environmental variable path: C:\Users\UserName\Desktop\opencv\build\x86\mingw\bin as well as have linked all the dll's in code::blocks and included:
C:\Users\UserName\Desktop\opencv\build\include to the compiler and: C:\Users\UserName\Desktop\opencv\build\x86\mingw\lib to the linker.

Now, MY QUESTION: Whenever I try to run the .cpp file in the sample section "demhist.cpp" i get the following error: "This application was unable to start correctly (0xc0000005). Click ok to exit the application."

I have no idea what i did wrong, if anything. I dont think this has to do with it i commented out: //C:\Users\UserName\Desktop\opencv\build\x86\mingw\bin which is located just under using namespace. I commented it out because the program would not compile saying " stray '\' in program.

Any help to get this working is much appreciated as I hope to learn OpenCV and use a webcam to control my robot i am working on.