L_DocShutDown

#include "ltdoc.h"

L_LTDOC_API L_INT L_DocShutDown(phDoc)

L_HDOC * phDoc;

/* pointer to an existing OCR document handle*/

Shuts down the OCR document engine and frees the allocated OCR document data.

Parameter

Description

phDoc

Pointer to an existing OCR document handle. This handle is obtained by calling L_DocStartUp.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The OCR document handle is allocated by calling L_DocStartUp.

For each call to L_DocStartUp there must be a call to L_DocShutDown. This function should be the last OCR function to be called in your application. It will clean up and free memory allocated during the OCR session and will close (shut down) the OCR document engine.

Required DLLs and Libraries

LTDOC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_DocStartUp

Topics:

OCR Functions: Starting and Shutting Down

 

Starting and Shutting Down the Engine

Example

For an example, refer to L_DocStartUp.