Chinese Simplified (简体中文)

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

InitializeEngine

Different Ways to Load the Engine Object

9/17/2024 3:14:41 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.