DeinitializeEngine Function
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++
HRESULT __stdcall DeinitializeEngine();
C#
int DeinitializeEngine();
Visual Basic .NET
Private Declare Function DeinitializeEngine Lib "FREngine.dll" () As Integer
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
It is prohibited to initialize and deinitialize ABBYY FineReader Engine at the entry points of other DLLs, and also in constructors and destructors of static and global objects implemented in DLLs, because they are called at the DLL entry points. This restriction is due to the fact that the Win32 LoadLibrary and FreeLibrary functions are not re-entrant. A user should initialize and deinitialize ABBYY FineReader Engine elsewhere, for example, in WinMain function of an EXE module.
Samples
C++ (COM) code
C# code
The function is used in all code samples except the EnginesPool sample.
See also
17.09.2024 15:14:40