Thanks for the quick reply,
I use the Tess-Two repository to build the Tesseract library, which uses Tesseract 3.05.
I do create an OpenALPR instance for each thread separately.
Is it possible that Tesseract keeps working after it returns results? I attached the source code for the thread, and the interesting part is in the run() function.
If I remove the code between the two long comments, it throws the error after some time. Memory usage is the same in both cases. Can you see anything that would cause problems?
Thanks