Error Codes

For a list of all possible return codes, refer to LEADTOOLS COM Return Codes in the Main COM help file (ltcomn.chm).

The following are the errors that are specifically related to the LEADTOOLS OCR document engine.

Error

No.

Description

ERROR_DOC_DLL_NOT_LOADED

21200

ScanSoft DLLs are not loaded

ERROR_DOC_INV_PAGE_INDEX

21201

Specified index is not correct

ERROR_DOC_INV_FILLMETHOD

21202

Invalid fill method

ERROR_DOC_INV_RECOG_MODULE

21203

Invalid recognition module

ERROR_DOC_INV_CHAR_FILTER

21204

Invalid character filter

ERROR_DOC_INV_ZONE_TYPE

21205

Invalid zone type

ERROR_DOC_INV_LANGID

21206

Invalid language Id

ERROR_DOC_INV_SPELL_LANGUAGE

21207

Invalid spell language

ERROR_DOC_INV_SECTION_ENUMERATION

21208

Invalid enumeration section

ERROR_DOC_INV_PAGE_COUNT

21209

Invalid page count

ERROR_DOC_ILLEGAL_CODE

21210

Illegal internal code as a parameter

ERROR_DOC_INV_PARAMETER

21211

Set parameter is not acceptable

ERROR_DOC_END_LIST_CODE_PAGES

21212

End of list of the available Code Pages

ERROR_DOC_LOAD_CODE_PAGE_FILE

21213

Error while loading the Code Page Definition file

ERROR_DOC_INV_BUFFER_SIZE

21214

The length of the exported code exceeds the buffer size

ERROR_DOC_INV_CHARACTER_CONVERSION

21215

Character conversion is not available for the given character

ERROR_DOC_INV_CHARACTER_LANGUAGE

21216

Conflict: The selected Code Page does not support some characters in the selected languages. There is no exact code in the Code Page for them

ERROR_DOC_INITIALIZE_CODE_PAGE

21217

Character Set and Code Pages module initialization error

ERROR_DOC_INITIALIZE_ENGINE

21218

OCR engine initialization error, or there is no appropriate license

ERROR_DOC_TERMINATE_ENGINE

21219

OCR engine termination error

ERROR_DOC_INITIALIZE_WARNING

21220

Module initialization warning

ERROR_DOC_PROCESS_USER_ABORT

21221

Application has aborted the current process

ERROR_DOC_FINISH_PROCESS

21222

Application has terminated the current recognition process without losing the recognized text

ERROR_DOC_MODULE_MISSING

21223

Module is not present

ERROR_DOC_MODULE_LOAD

21224

OS could not load a module

ERROR_DOC_MODULE_MISSING_ENTRY

21225

Missing entry in a module

ERROR_DOC_MODULE_INVALID

21226

Invalid module

ERROR_DOC_MODULE_INITIALIZE

21227

Module initialization error

ERROR_DOC_FEATURE_NOT_SUPPORTED

21228

The requested function is not available, or there is no appropriate license

ERROR_DOC_GENERAL

21229

General error in the engine

ERROR_DOC_GPF

21230

General Protection Fault in the engine

ERROR_DOC_NOT_SUPPORT_OS

21231

Unsupported operating system

ERROR_DOC_INV_SETTING_FILE

21232

Syntax error in the specified engine Settings file

ERROR_DOC_INV_SETTING

21233

Invalid setting

ERROR_DOC_ENGINE_BUSY

21234

The engine is busy

ERROR_DOC_RECOGNITION_TIME_OUT

21235

Recognition process Time Out

ERROR_DOC_INV_IMAGE_MODULE_SETTING

21236

Internal error in image module

ERROR_DOC_NO_MEMORY

21237

Not enough memory during image processing

ERROR_DOC_INV_IMAGE_DIMENSIONS

21238

Invalid rectangle dimensions

ERROR_DOC_INV_IMAGE_RESOLUTION

21239

Non-supported resolution

ERROR_DOC_CANNOT_COMPRESS_IMAGE

21240

Cannot process compressed image

ERROR_DOC_BAD_BITMAP

21241

Invalid bitmap address

ERROR_DOC_NOT_SUPPORT_BPP

21242

Unsupported BitsPerPixel value

ERROR_DOC_INV_IMAGE_MODULE

21243

Internal error in image module

ERROR_DOC_INV_IMAGE_HANDLE

21244

Invalid image handle

ERROR_DOC_BUFFER_OVERFLOW

21245

Buffer overflow during processing of the image

ERROR_DOC_ACCESS_DENIED

21246

Image operation denied

ERROR_DOC_NO_MORE_LINES

21247

No more lines in defined image area

ERROR_DOC_BAD_IMAGE_SIZE

21248

Non-supported image size

ERROR_DOC_BAD_ENGINE_MANAGER_MODULE

21249

Engine manager module error

ERROR_DOC_NO_RECOGNIZED_TEXT_AVAILABLE

21250

No recognized text available, either because the zone is empty or the required recognition module has not been initialized properly

ERROR_DOC_NO_SELECTED_RECOGNITION_MODULE

21251

There is no selected recognition module

ERROR_DOC_NO_ZONE

21252

There is no zone in the zone list

ERROR_DOC_INV_ZONE_INDEX

21253

Invalid zone index

ERROR_DOC_INV_ZONE_COORDINATES

21254

Invalid zone coordinates

ERROR_DOC_MOR_INITIALIZE_MODULE

21255

MOR recognition module initialization error

ERROR_DOC_MOR_BASE_FILE_NOT_FOUND

21256

MOR recognition module's knowledge base file not found

ERROR_DOC_MOR_BASE_FILE_CORRUPTED

21257

MOR recognition module's knowledge base file corrupted

ERROR_DOC_MOR_BASE_FILE_VERSION

21258

Incorrect knowledge base file version

ERROR_DOC_MOR_IMAGE_SIZE

21259

Size of image is too large

ERROR_DOC_MOR_FILE_CORRUPTED

21260

File is corrupted

ERROR_DOC_MOR_BAD_RECOG_MODULE

21261

Internal error in the MOR recognition module

ERROR_DOC_MOR_GPF_MODULE

21262

General Protection Fault in the MOR recognition module

ERROR_DOC_DOT_RECOGNITION

21263

Dot-matrix recognition error

ERROR_DOC_OMR_CHECKMARK_RECOGNITION

21264

Checkmark recognition error

ERROR_DOC_HNR_BASE_FILE__CORRUPTED

21265

HNR module's knowledge base file is corrupted

ERROR_DOC_HNR_PARAM_OUT_RANGE

21266

Parameter is out of valid range

ERROR_DOC_PER_MODULE

21267

Internal error in the RER module

ERROR_DOC_PER_BASE_FILE_NOT_FOUND

21268

RER module's knowledge base file not found

ERROR_DOC_PER_CHAR_SET_EMPTY

21269

Character Set is empty for the RER module

ERROR_DOC_PER_CHAR_SET_NOT_SUPPORTED

21270

The specified Character Set not fully supported by the RER recognition module

ERROR_DOC_PER_MODULE_NOT_FOUND

21271

RER specific file not found

ERROR_DOC_SPELL_NO_MEMORY

21272

Not enough memory for the SPL module

ERROR_DOC_SPELL_UNINITIALIZED

21273

Uninitialized spell object

ERROR_DOC_SPELL_FILE_OPEN

21274

Spell file open error

ERROR_DOC_SPELL_FILE_READ

21275

Spell file read error

ERROR_DOC_SPELL_USER_DICTIONARY_WRITE

21276

User dictionary write error

ERROR_DOC_SPELL_INV_FILE_FORMAT

21277

Invalid file format

ERROR_DOC_SPELL_INITIALIZE_MODULE

21278

Module initialization error

ERROR_DOC_SPELL_USER_DICTIONARY_CLOSE

21279

User dictionary close error

ERROR_DOC_SPELL_ILLEGAL_LANGUAGE_SETTING

21280

Illegal language setting

ERROR_DOC_SPELL_NO_MORE_ITEMS

21281

No more suggestions/items available

ERROR_DOC_SPELL_CHECK_ERROR

21282

Internal checking error

ERROR_DOC_SPELL_ITEM_ALREADY_EXIST

21283

Item already exists in the User dictionary

ERROR_DOC_SPELL_ITEM_NOT_EXIST

21284

Item doesn't exist in the User dictionary

ERROR_DOC_SPELL_ITEM_NOT_INSERTED

21285

Item wasn't inserted into the User dictionary

ERROR_DOC_SPELL_SECTION_NOT_EXIST

21286

Section does not exist in the User dictionary

ERROR_DOC_SPELL_BAD_SYNTEX

21287

Regular expression syntax error

ERROR_DOC_OUTPUT_NOT_INITIALIZED

21288

Output format conversion subsystem was not initialized

ERROR_DOC_OUTPUT_CONVERT_NOT_EXIST

21289

No more converters available

ERROR_DOC_OUTPUT_CONVERT_DLL_NOT_EXIST

21290

There is no converter DLL file

ERROR_DOC_OUTPUT_BAD_PARAMETER

21291

Wrong parameter or parameter not found

ERROR_DOC_OUTPUT_FILE_CORRUPTED

21292

TMP file is corrupted

ERROR_DOC_OUTPUT_FILE_NOT_FOUND

21293

TMP file not found

ERROR_DOC_OUTPUT_CREATE_FILE

21294

Cannot create TMP file

ERROR_DOC_OUTPUT_SEEK_FILE

21295

Cannot seek in TMP file

ERROR_DOC_OUTPUT_READ_FILE

21296

TMP file read error

ERROR_DOC_OUTPUT_WRITE_FILE

21297

TMP file write error

ERROR_DOC_OUTPUT_CLOSE_FILE

21298

Cannot close TMP file

ERROR_DOC_OUTPUT_LOAD_DLL

21299

Cannot load the DLL file

ERROR_DOC_OUTPUT_END_OF_FILE

21300

Internal error in ATMTXT module. (End-Of-File detected)

ERROR_DOC_OUTPUT_NO_MEMORY

21301

Not enough memory for ATMTXT/TMP module

ERROR_DOC_OUTPUT_IMAGE_NOT_AVAILABLE

21302

Image is not available for inserting into the output

ERROR_DOC_OUTPUT_NOT_REGISTER_INFO_ITEM

21303

Not enough memory to register an info item

ERROR_DOC_TXT_FILE_OPEN

21304

Output file open error

ERROR_DOC_TXT_FILE_READ

21305

Output file read error

ERROR_DOC_TXT_FILE_NOT_FOUND

21306

Output file not found

ERROR_DOC_TXT_FILE_WRITE

21307

Output file write error

ERROR_DOC_TXT_INV_COMMAND_SEQUENCE

21308

Invalid command sequence in the ICF file

ERROR_DOC_TXT_CREATE_FILE

21309

Cannot create the output file

ERROR_DOC_TXT_NO_MEMORY

21310

Not enough memory for ATMTXT/TXT module

ERROR_DOC_TXT_INV_DOCUMENT

21311

Invalid document type

ERROR_DOC_TXT_FILE_TOO_LARGE

21312

File too large

ERROR_DOC_TXT_WARNING_OUTPUT_FILE

21313

There was a WARNING during the output file conversion

ERROR_DOC_TXT_OPERATION_CANCELLED

21314

Operation cancelled

ERROR_DOC_TXT_ILLEGAL_OPTION

21315

Illegal option specified

ERROR_DOC_TXT_ENCRYPTED_SOURCE

21316

Encrypted source

ERROR_DOC_TXT_SEEK_ERROR

21317

Output file seek error

ERROR_DOC_BRAILLE_BAD_INITIALIZATION

21318

Braille recognition module initialization error

ERROR_DOC_MATRIX_BAD_INITIALIZATION

21319

Matrix matching recognition module initialization error

ERROR_DOC_MTX_BAD_INITIALIZATION

21320

M/TEXT recognition module initialization error

ERROR_DOC_NON_IMPLEMENTED_FEATURE

21321

Non-implemented feature

ERROR_DOC_NOT_FOUND_ZONE

21322

Couldn’t find specific zone

ERROR_DOC_NO_SELECTED_ZONE

21323

No available selected zone

ERROR_DOC_EXPORT_PAGE

21324

Can’t export the specified page

ERROR_DOC_LOCK_PAGE

21325

Can’t lock the specified page

ERROR_DOC_ACTIVE_PAGE

21326

Can’t set the specified page to be activated.

ERROR_DOC_LOCKED

21327

The OCR document engine is locked.

ERROR_DOC_OUTPUT_PDF_LOCKED

21328

Output PDF engine is locked.

ERROR_DOC_OMR_LOCKED

21329

OMR Options is locked

ERROR_DOC_ICR_LOCKED

21330

ICR Options is locked