I’m not sure why, but for a mysterious reason my c++ application doesn’t wait anymore when it reaches cvWaitKey(0) it just passes this line, like this function doesn’t do anything!
I also tried cvWaitKey(100000) it doesn’t work either…
void main() {
cvWaitKey(0);
return;
}
My project is a little complex, I’m using Visual Studio 2010 and It includes opencv ffmpeg pthread winsocks and some other libraries.
Can you guess why this happens?
Have you called
cvNamedWindowyet? It will not work withoutcvNamedWindow.