Ask Your Question

Revision history [back]

Hi, Does anyone know how can I capture frames of a video in cpp, using opencv without memory leakage problem?

Hi, I'm using VideoCapture (OpenCV) to capture frames of a video in cpp. As I read forums, there is a memory leakage problem while reading frames in a "while" and this cannot be solved by any command like "release". Also, I read that this is solved in last version of OpenCV. But because of some problems, I'd rather to avoid changing OpenCv version and I'm looking for a command or some changes in OpenCV source code to solve this problem. Also I saw "Memory leak in every thread #9745", but I don't know how to use it to solve this problem. Any help will be appreciated, Sina.