OpenCV V3.3 64bit Video Capture Memory Leak

asked 2017-08-18 02:54:19 -0500

Vedaevolution gravatar image

updated 2017-08-18 02:55:12 -0500

Dear community, with this simple peace of code a get a memory leak using opencv v3.3 64bit with Visual Studio 2015.

int i = 0;

while (i++ < 50) {
    VideoCapture test; test = VideoCapture(0);
}

Can you help me to avoid this? It seems to be a bug in opencv. After the loop finished the memory is leaked and even waiting for the freeing is no good.

Best Regards

edit retag flag offensive close merge delete

Comments

may be there is no memor leaks... How do you detect memory leaks in vs 2015? have you check false positive memory leak?

LBerger gravatar imageLBerger ( 2017-08-20 03:44:50 -0500 )edit