Skip to main content
This method is implemented in FRE for Windows.
This method deinitializes ABBYY FineReader Engine. It unloads FineReader Engine and frees up resources.

Syntax

C++

HRESULT ExplicitlyUnload();

C#

void ExplicitlyUnload();

Visual Basic .NET

Sub ExplicitlyUnload()

Return values

This method has no specific return values. It returns the standard return values of the ABBYY FineReader Engine functions.

Remarks

If you work with .NET, additionally call GC.Collect and GC.WaitForPendingFinalizers after deinitialization. This will explicitly finalize all FREngine.exe processes. Otherwise, they will exist until the garbage collector is called automatically.
Garbage collector is not always called automatically. In this case, all the processes will exist till the finalization of the application. If you work with server applications that are not finalized, it is strongly recommended to explicitly call the garbage collector.

See also

IEngineLoader InitializeEngine DeinitializeEngine Different Ways to Load the Engine Object