1 | initial version |
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.
2 | No.2 Revision |
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.