64bit Opencv windows7 error 0x000007 [closed]

asked 2013-09-04 10:30:39 -0600

cvandert gravatar image

I have a windows7 64bit machine. I compiled and linked a small sample program with visual studio 2010 professional in 64bit debug mode. (The program runs fine in 32bit mode). It also compiles and links fine in 64 bit mode (changed the libraries to 64bit versions of OpenCV), however when i run it, it immediately returns with the 0xc000007b message, and shuts down. I have not been able to find a solution to this on the internet. what is wrong here?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2013-09-05 07:40:10.400522

Comments

Seems to me you forgot to change the path variable part x86 to x64. Also on Windows you need to restart before these path changes become active. So probably your linker finds the libs, then sends looking for the dlls, sees they are 32 bit and crashes.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-09-04 13:36:52 -0600 )edit
1

Thank you very much Steven, it's working now. I didn't realize that I had to change the environment path value to the OpenCV DLLs, but in retrospect it does seem logical.

cvandert gravatar imagecvandert ( 2013-09-05 05:37:01 -0600 )edit