Ask Your Question

Revision history [back]

Heap memory corruption bug in C++ HoughLinesP function

In development environment of VS2010, opencv 2.4.11, Windows7-32bit, and an MFC GUI program, the HoughLinesP function always causes a heap memory corruption error in an automatic memory clearing stage of std::vector, even when a std::vector<vec4i> parameter is inputted as an OutputArray parameter of the function like the examples in the documentation. I could cope with this problem with difficulty by using the old cvHoughLines2 function where the output is an old CvSeq data structure. But I think this is unreasonable, and a newer version should address a major function bug of a pretty older version in a software. Could anyone address this problem? The Hough transform is one of much used basic functions in the vision field, as you know.