The code written in Java throws the error:
The error is thrown if FineReader Engine's objects are handled incorrectly.
- In the code, the DeinitializeEngine method must be called, it must be called in the same thread as the InitializeEngine method.
- In case the Engine object is initialized in one thread and used in the other, PDF Support should be initialized in the same thread. This can be done by calling LoadModule or setting the ProcessPdfInOneThread parameter of the MultiProcessingParams object to True.
- In case the FineReader Engine's log generated by calling the StartLogging method of the Engine object, contains entries "Wrong thread!", check that all calls to the Engine object are synchronized.