Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Program termination

I just installed OpenCV 2.4.5 on my Mac OSX (Mountain Lion) and ran the "lena" tutorial. It works fine except for termination. The last few lines of code in the tutorial are:

imshow( "Display Image", image );
waitKey(0);
return 0;

Based on the waitKey() documentation, it looks like any keystroke should get me out of the program. However, any key I type is echoed, but only Ctl-C terminates the program. The Quit item on the Menu doesn't terminate either, although I'm not as surprised by that.