Return Codes
The following are the possible return values for LEADTOOLS functions. These are the values in the L_ERROR.H file.
Note: |
All LEADTOOLS function errors will return a negative number. |
Error |
No. |
Description |
ERROR_NO_MEMORY |
-1 |
Not enough memory available |
ERROR_NO_BITMAP |
-2 |
Invalid bitmap handle |
ERROR_MEMORY_TOO_LOW |
-3 |
Not enough memory available |
ERROR_FILE_LSEEK |
-4 |
Error seeking to position |
ERROR_FILE_WRITE |
-5 |
Error writing file |
ERROR_FILE_GONE |
-6 |
File not present - abort |
ERROR_FILE_READ |
-7 |
Error reading file |
ERROR_INV_FILENAME |
-8 |
Invalid filename specified |
ERROR_FILE_FORMAT |
-9 |
Invalid file format |
ERROR_FILENOTFOUND |
-10 |
File not found |
ERROR_INV_RANGE |
-11 |
Invalid width/height |
ERROR_IMAGE_TYPE |
-12 |
Image format recognized, but sub-type not supported |
ERROR_INV_PARAMETER |
-13 |
Invalid parameter passed |
ERROR_FILE_OPEN |
-14 |
Not able to open file |
ERROR_UNKNOWN_COMP |
-15 |
Unknown compression format |
ERROR_FEATURE_NOT_SUPPORTED |
-16 |
Feature not supported |
ERROR_NOT_256_COLOR |
-17 |
VGA card only supports 256 colors (8 bit) |
ERROR_PRINTER |
-18 |
Printer error |
ERROR_CRC_CHECK |
-19 |
Data CRC check error |
ERROR_QFACTOR |
-21 |
Invalid QFactor specified |
ERROR_TARGAINSTALL |
-22 |
TARGA not installed |
ERROR_OUTPUTTYPE |
-23 |
Invalid compression format |
ERROR_XORIGIN |
-24 |
X origin specified invalid |
ERROR_YORIGIN |
-25 |
Y origin specified invalid |
ERROR_VIDEOTYPE |
-26 |
Invalid video mode |
ERROR_BITPERPIXEL |
-27 |
Invalid bits/pixel |
ERROR_WINDOWSIZE |
-28 |
Invalid window size |
ERROR_NORMAL_ABORT |
-29 |
Escape key pressed |
ERROR_NOT_INITIALIZED |
-30 |
Internal error - call LEAD |
ERROR_CU_BUSY |
-31 |
Internal error - call LEAD |
ERROR_INVALID_TABLE_TYPE |
-32 |
Internal error - call LEAD |
ERROR_UNEQUAL_TABLES |
-33 |
Internal error - call LEAD |
ERROR_INVALID_BUFFER |
-34 |
Internal error - call LEAD |
ERROR_MISSING_TILE_DATA |
-35 |
Internal error - call LEAD |
ERROR_INVALID_QVALUE |
-36 |
Internal error - call LEAD |
ERROR_INVALIDDATA |
-37 |
Internal error - call LEAD |
ERROR_INVALID_COMPRESSED_TYPE |
-38 |
Internal error - call LEAD |
ERROR_INVALID_COMPONENT_NUM |
-39 |
Internal error - call LEAD |
ERROR_INVALID_PIXEL_TYPE |
-40 |
Internal error - call LEAD |
ERROR_INVALID_PIXEL_SAMPLING |
-41 |
Internal error - call LEAD |
ERROR_INVALID_SOURCE_FILE |
-42 |
Internal error - call LEAD |
ERROR_INVALID_TARGET_FILE |
-43 |
Internal error - call LEAD |
ERROR_INVALID_IMAGE_DIMS |
-44 |
Internal error - call LEAD |
ERROR_INVALID_TILE_DIMS |
-45 |
Internal error - call LEAD |
ERROR_INVALID_PIX_BUFF_DIMS |
-46 |
Internal error - call LEAD |
ERROR_SEGMENT_OVERFLOW |
-47 |
Internal error - call LEAD |
ERROR_INVALID_SUBSAMPLING |
-48 |
Internal error - call LEAD |
ERROR_INVALID_Q_VIS_TABLE |
-49 |
Internal error - call LEAD |
ERROR_INVALID_DC_CODE_TABLE |
-50 |
Internal error - call LEAD |
ERROR_INVALID_AC_CODE_TABLE |
-51 |
Internal error - call LEAD |
ERROR_INSUFFICIENT_DATA |
-52 |
Internal error - call LEAD |
ERROR_MISSING_FUNC_POINTER |
-53 |
Internal error - call LEAD |
ERROR_TOO_MANY_DC_CODE_TABLES |
-54 |
Internal error - call LEAD |
ERROR_TOO_MANY_AC_CODE_TABLES |
-55 |
Internal error - call LEAD |
ERROR_INVALID_SUBIMAGE |
-56 |
Internal error - call LEAD |
ERROR_INVALID_ABORTION |
-57 |
Internal error - call LEAD |
ERROR_CU_NO_SUPPORT |
-58 |
Internal error - call LEAD |
ERROR_CU_FAILURE |
-59 |
Internal error - call LEAD |
ERROR_BAD_POINTER |
-60 |
Internal error - call LEAD |
ERROR_HEADER_DATA_FAILURE |
-61 |
Internal error - call LEAD |
ERROR_COMPRESSED_DATA_FAILURE |
-62 |
Internal error - call LEAD |
ERROR_FIXEDPAL_DATA |
-63 |
Fixed palette data not found |
ERROR_LOADFONT_DATA |
-64 |
Fixed palette data not found |
ERROR_NO_STAMP |
-65 |
Stamp not found |
ERROR_G3CODE_INVALID |
-70 |
Invalid group 3 data |
ERROR_G3CODE_EOF |
-71 |
Group3 code end of file |
ERROR_G3CODE_EOL |
-72 |
Group3 code end of code |
ERROR_PREMATURE_EOF |
-73 |
Premature EOF at scanline |
ERROR_PREMATURE_EOL |
-74 |
Premature end-of-line code |
ERROR_UNCOMP_EOF |
-75 |
Premature end-of-line code |
ERROR_ACT_INCOMP |
-76 |
Premature end-of-line code |
ERROR_BAD_DECODE_STATE |
-77 |
Premature end-of-line code |
ERROR_VERSION_NUMBER |
-78 |
Bad version number |
ERROR_TWAIN_NODSM |
-79 |
Source manager not found |
ERROR_TWAIN_BUMMER |
-80 |
Failure due to unknown causes |
ERROR_TWAIN_LOWMEMORY |
-81 |
Not enough memory to perform operation |
ERROR_TWAIN_NODS |
-82 |
No Data Source |
ERROR_TWAIN_MAXCONNECTIONS |
-83 |
DS is connected to max possible apps |
ERROR_TWAIN_OPERATIONERROR |
-84 |
DS or DSM reported error, app shouldn't |
ERROR_TWAIN_BADCAP |
-85 |
Unknown capability |
ERROR_TWAIN_BADPROTOCOL |
-86 |
Unrecognized MSG DG DAT combination |
ERROR_TWAIN_BADVALUE |
-87 |
Data parameter out of range |
ERROR_TWAIN_SEQERROR |
-88 |
DG DAT MSG out of expected sequence |
ERROR_TWAIN_BADDEST |
-89 |
Unknown destination App/Src in DSM_Entry |
ERROR_TWAIN_CANCEL |
-90 |
Operation was cancelled |
ERROR_PANWINDOW_NOT_CREATED |
-91 |
Pan window was not created |
ERROR_TWAIN_CAPUNSUPPORTED |
-93 |
Twain capability unsupported |
ERROR_TWAIN_FILEXFER_UNSUPPORTED |
-94 |
Twain File Transfer unsupported |
|
|
|
ERROR_USER_ABORT |
-100 |
User has aborted operation |
ERROR_FPX_INVALID_FORMAT_ERROR |
-101 |
FlashPix error |
ERROR_FPX_FILE_WRITE_ERROR |
-102 |
FlashPix error |
ERROR_FPX_FILE_READ_ERROR |
-103 |
FlashPix error |
ERROR_FPX_FILE_NOT_FOUND |
-104 |
FlashPix error |
ERROR_FPX_COLOR_CONVERSION_ERROR |
-105 |
FlashPix error |
ERROR_FPX_SEVER_INIT_ERROR |
-106 |
FlashPix error |
ERROR_FPX_LOW_MEMORY_ERROR |
-107 |
FlashPix error |
ERROR_FPX_IMAGE_TOO_BIG_ERROR |
-108 |
FlashPix error |
ERROR_FPX_INVALID_COMPRESSION_ERROR |
-109 |
FlashPix error |
ERROR_FPX_INVALID_RESOLUTION |
-110 |
FlashPix error |
ERROR_FPX_INVALID_FPX_HANDLE |
-111 |
FlashPix error |
ERROR_FPX_TOO_MANY_LINES |
-112 |
FlashPix error |
ERROR_FPX_BAD_COORDINATES |
-113 |
FlashPix error |
ERROR_FPX_FILE_SYSTEM_FULL |
-114 |
FlashPix error |
ERROR_FPX_MISSING_TABLE |
-115 |
FlashPix error |
ERROR_FPX_RETURN_PARAMETER_TOO_LARGE |
-116 |
FlashPix error |
ERROR_FPX_NOT_A_VIEW |
-117 |
FlashPix error |
ERROR_FPX_VIEW_IS_TRANFORMLESS |
-118 |
FlashPix error |
ERROR_FPX_ERROR |
-119 |
FlashPix error |
ERROR_FPX_UNIMPLEMENTED_FUNCTION |
-120 |
FlashPix error |
ERROR_FPX_INVALID_IMAGE_DESC |
-121 |
FlashPix error |
ERROR_FPX_INVALID_JPEG_TABLE |
-122 |
FlashPix error |
ERROR_FPX_ILLEGAL_JPEG_ID |
-123 |
FlashPix error |
ERROR_FPX_MEMORY_ALLOCATION_FAILED |
-124 |
FlashPix error |
ERROR_FPX_NO_MEMORY_MANAGEMENT |
-125 |
FlashPix error |
ERROR_FPX_OBJECT_CREATION_FAILED |
-126 |
FlashPix error |
ERROR_FPX_EXTENSION_FAILED |
-127 |
FlashPix error |
ERROR_FPX_FREE_NULL_PTR |
-128 |
FlashPix error |
ERROR_FPX_INVALID_TILE |
-129 |
FlashPix error |
ERROR_FPX_FILE_IN_USE |
-130 |
FlashPix error |
ERROR_FPX_FILE_CREATE_ERROR |
-131 |
FlashPix error |
ERROR_FPX_FILE_NOT_OPEN_ERROR |
-132 |
FlashPix error |
ERROR_FPX_USER_ABORT |
-133 |
FlashPix error |
ERROR_FPX_OLE_FILE_ERROR |
-134 |
FlashPix error |
ERROR_BAD_TAG |
-140 |
Bad TIFF tag |
ERROR_INVALID_STAMP_SIZE |
-141 |
Stamp size is too big or invalid bits per pixel, etc |
ERROR_BAD_STAMP |
-142 |
Stamp is present but data is corrupted |
ERROR_EXPRESS_NOT_ENABLED |
-143 |
Document Imaging capability is required to use this function |
ERROR_IMAGE_EMPTY |
-144 |
Image is empty |
ERROR_NO_CHANGE |
-145 |
The image hasn't changed |
ERROR_ANN_LOCKED |
-148 |
The annotation object is locked. |
ERROR_DLG_CANCELED |
-150 |
Imaging Common Dialog canceled by user |
ERROR_DLG_FAILED |
-151 |
Imaging Common Dialog Error - error during creation of Imaging Common Dialog |
ERROR_ISIS_NOCURSCANNER |
-160 |
No ISIS Scanner selected |
ERROR_ISIS_SCANDRIVER_NOT_LOADED |
-161 |
ISIS Scanner driver failed to load |
ERROR_ISIS_CANCEL |
-162 |
ISIS operation canceled by user. |
ERROR_ISIS_BAD_TAG_OR_VALUE |
-163 |
Bad ISIS Tag or Bad Tag Value |
ERROR_ISIS_NOT_READY |
-164 |
ISIS Scanner not ready |
ERROR_ISIS_NO_PAGE |
-165 |
No page in the ISIS Scanner |
ERROR_ISIS_JAM |
-166 |
ISIS Scanner Jam error |
ERROR_ISIS_SCANNER_ERROR |
-167 |
ISIS Scanner driver error |
ERROR_ISIS_BUSY |
-168 |
ISIS Scanner is busy |
ERROR_ISIS_FILE_ERROR |
-169 |
ISIS File driver error |
ERROR_ISIS_NETWORK_ERROR |
-170 |
ISIS Network error |
ERROR_ISIS_NOT_INSTALLED |
-171 |
ISIS is not installed |
ERROR_PAGE_NOT_FOUND |
-310 |
Page not found |
ERROR_DELETE_LAST_PAGE |
-311 |
You cannot delete a page from a file containing only one page |
ERROR_NO_HOTKEY |
-312 |
There is no hotkey. |
ERROR_CANNOT_CREATE_HOTKEY_WINDOW |
-313 |
Error creating the hotkey window. |
ERROR_MEDICAL_NOT_ENABLED |
-314 |
Medical Imaging capability is required to use this function |
ERROR_JBIG_NOT_ENABLED |
-315 |
.JBIG capability is requiredto use this function |
ERROR_VECTOR_NOT_ENABLED |
-400 |
Vector support is locked. |
ERROR_VECTOR_DWF_NOT_ENABLED |
-405 |
Vector DWF capability is required to use this function |
ERROR_NO_UNDO_STACK |
-406 |
There is no undo stack |
ERROR_UNDO_DISABLED |
-407 |
The undo is disabled |
ERROR_PDF_NOT_ENABLED |
-408 |
PDF capability is required to use this function |
ERROR_VECTOR_IS_EMPTY |
-501 |
The vector is empty. |
ERROR_VECTOR_LAYER_NOT_FOUND |
-502 |
The vector layer was not found. |
ERROR_VECTOR_LAYER_IS_LOCKED |
-503 |
The vector layer is locked. |
ERROR_VECTOR_LAYER_ALREADY_EXISTS |
-504 |
The vector layer was not found. |
ERROR_VECTOR_OBJECT_NOT_FOUND |
-505 |
The vector object was not found. |
ERROR_VECTOR_INVALID_OBJECT_TYPE |
-506 |
Invalid object type. |
ERROR_VECTOR_PEN_NOT_FOUND |
-507 |
Pen was not found. |
ERROR_VECTOR_BRUSH_NOT_FOUND |
-508 |
Brush was not found. |
ERROR_VECTOR_FONT_NOT_FOUND |
-509 |
Font was not found. |
ERROR_VECTOR_BITMAP_NOT_FOUND |
-510 |
Bitmap was not found. |
ERROR_VECTOR_POINT_NOT_FOUND |
-511 |
Point was not found. |
ERROR_VECTOR_ENGINE_NOT_FOUND |
-512 |
Vector engine was not found. |
ERROR_VECTOR_INVALID_ENGINE |
-513 |
Invalid vector engine. |
ERROR_VECTOR_CLIPBOARD |
-514 |
Clipboard error. |
ERROR_VECTOR_CLIPBOARD_IS_EMPTY |
-515 |
Clipboard is empty. |
ERROR_VECTOR_CANT_ADD_TEXT |
-516 |
Cannot add the text. |
ERROR_VECTOR_CANT_READ_WMF |
-517 |
Cannot read the WMF. |
ERROR_VECTOR_GROUP_NOT_FOUND |
-518 |
Group was not found. |
ERROR_VECTOR_GROUP_ALREADY_EXISTS |
-519 |
Group already exists. |