error: using tesseract in a loop (vb.net)

85 views
Skip to first unread message

nahibi

unread,
Jun 4, 2015, 1:46:56 PM6/4/15
to tesser...@googlegroups.com
hi,

my application crashes after 17 loopruns.
I think it is because I always do:

Dim OCR As Tesseract = New Tesseract("tessdata", "eng", Tesseract.OcrEngineMode.OEM_TESSERACT_ONLY, "23456789")

Can I destroy the OCR at the end of the loop?



Bill Dowton

unread,
Jan 23, 2018, 2:02:15 AM1/23/18
to tesseract-ocr
If you use the "Using - End Using" construct it will be automatically destroyed on "End Using"
Reply all
Reply to author
Forward
0 new messages