Skip to main content
This function deinitializes ABBYY FineReader Engine. The function must be called for deinitialization of the Engine object obtained using the InitializeEngine function. Prior to the deinitialization, you must release all references to FineReader Engine objects.

Syntax

C++

C#

Visual Basic .NET

Return values

This function returns E_FAIL if not all objects are released. In that case, you can get the list of not released objects using the IEngine::StartLogging method. The function may return the standard return values of ABBYY FineReader Engine functions.

Remarks

Do not initialize and deinitialize ABBYY FineReader Engine at the entry points of other dynamic libraries and also in constructors and destructors of static and global objects implemented in dynamic libraries, because they are called at the dynamic library entry points.
A user should initialize and deinitialize ABBYY FineReader Engine elsewhere. For example, in the main or WinMain function of an executable module.
In Windows, this restriction is due to the fact that the Win32 LoadLibrary and FreeLibrary functions are not re-entrant.

Samples

The function is used in all code samples except the Windows EnginesPool sample.

See also

InitializeEngine Different Ways to Load the Engine Object