Ask Your Question

Revision history [back]

I think this is a memory-leak error. From you code, CCEyes is a pointer, if it is a global pointer, your object (in previous thread) will be lost in current thread (as the pointer is assigned to a new object). If it is not a global pointer (I mean it is a local variable in each thread code), this may be caused since CascadeClassifier is a non thread-safe class.

I think this is a memory-leak error. From you your code, CCEyes is a pointer, if it is a global pointer, your object (in previous thread) will be lost in current thread (as the pointer is assigned to a new object). If it is not a global pointer (I mean it is a local variable in each thread code), this may be caused since CascadeClassifier is a non thread-safe class.