I'm using Visual studio 2012 and OpenCV 2.4.9. Win 7 64bit-SP1. I have now compiled a simple code to display an image it is showing this image when debugging. Compilation was successful. I have installed VC run time x64 and x86 and again checked but again same problem.