ABBYY Mobile OCR Engine 4

Go to: Contents | Native Library API Reference | Functions

FineInitialize Function

This function initializes the ABBYY Mobile OCR Engine library. It allows you to specify client-implemented functions for memory allocation and release and a logging function.

Important! All functions of the ABBYY Mobile OCR Engine library should be called only from the thread in which the library was initialized. You can not initialize the library in several threads simultaneously or parallel without deinitialization.

C Syntax
TFineErrorCode FineInitialize( 
  TFineAllocMemoryFunction  allocFunction,
  TFineFreeMemoryFunction   freeFunction,
  TFineExecutionLogFunction executionLogFunction
);

Parameters

allocFunction
[in] A custom function for memory allocation TFineAllocMemoryFunction. All memory used by the library will be allocated through this function. This parameter is optional. If this parameter is zero, memory will be allocated in standard way.
freeFunction
[in] A custom function for memory release TFineFreeMemoryFunction. This function is used to release memory which was allocated by the function specified in the allocFunction parameter. This parameter is optional. If the allocFunction parameter is zero, this parameter must be zero too.
executionLogFunction
[in] A custom function FineExecutionLogFunction which receives the logging information (errors, warnings and tips which occur during the execution). This parameter is optional. If this parameter is zero, the logging will be disabled.

Return value

The function returns the standard return values of ABBYY Mobile OCR Engine functions.

See also

FineDeinitialize
Memory Management Functions
How to Use the Native Library