I tried running the example program from here in Windows, using VS 2010, but it keeps giving me a Stack Overflow error. I am using OpenCV 2.4.2 The same code works well on OpenCV 2.3.1.
I am not sure where I am going wrong. I built OpenCV from source and am linking in the libraries dynamically. Can you help?
I had the same issue. These to links here and here show the cause of your problem.
Simply uncheck
OPENCV_CAN_BREAK_BINARY_COMPATIBILITYwhen building opencv.