Problem with cv::undistort only when debug with VS

asked 2015-05-02 04:36:37 -0500

Hi there! I developed a program which used cv::undistort to undistort an image and it works correctly both in debug and release mode. However when I use the Visual Studio and put a breakpoint 1 line before the undistort function, when I choose to step over to see if everything is ok,I get the following error:

Unhandled exception at 0x737da733 in ar_chess_aruco_1.exe: 0xC0000005: Access violation reading location 0x0000000c.

However if I just run the program etc. everything is great! What is wrong with breakpoint and debugging?

edit retag flag offensive close merge delete