[tesseract-ocr] WARNING! LEAK!

2022-10-27 Thread Björn Gitter
I'm using Tesseract 4.1.1 and Tesseract.Drawing 4.1.1 in c# I downloaded the language data from https://github.com/tesseract-ocr/tessdata_fast The app works and extracts the correct data but I get the following error messages: ObjectCache(7FF81981DEC8)::~ObjectCache(): WARNING! LEAK! object

Re: [tesseract-ocr] WARNING! LEAK!

2022-10-27 Thread Zdenko Podobny
I am not sure about C#, but the rules for c++ are described e.h. here: https://en.wikipedia.org/wiki/New_and_delete_(C%2B%2B) Zdenko št 27. 10. 2022 o 11:17 Björn Gitter napísal(a): > I'm using Tesseract 4.1.1 and Tesseract.Drawing 4.1.1 in c# > I downloaded the language data from > https://g

Re: [tesseract-ocr] WARNING! LEAK!

2022-10-27 Thread Björn Gitter
I'm a noob - forgot to dispose of engine. Adding engine.Dispose(); fixes the problem. On Thursday, October 27, 2022 at 11:35:48 AM UTC+2 zdenop wrote: > I am not sure about C#, but the rules for c++ are described e.h. here: > > https://en.wikipedia.org/wiki/New_and_delete_(C%2B%2B) > > Zdenko >