Return Codes
The following are the possible return values for LEADTOOLS functions. These are the values in the L_ERROR.H file. The first table lists SUCCESS and FAILURE codes used by various LEADTOOLS functions and the second table lists ERROR codes used by various LEADTOOLS functions.
NOTE: At the time of release, x64 TWAIN drivers were not available. As soon as they become available, LEADTOOLS will support 64-bit TWAIN.
|
Value |
Number |
Description |
|
FAILURE |
0 |
Function not successful. |
|
SUCCESS |
1 |
Function successful. |
|
SUCCESS_ABORT |
2 |
Function successful. You can quit now. |
|
SUCCESS_DELETE |
3 |
Function successful. Delete file before quiting. |
|
SUCCESS_RETRY |
4 |
Function successful. Retry doing the failed op. |
|
SUCCESS_IGNOREMARKER |
5 |
Function successful. Ignore this marker. |
|
SUCCESS_IGNOREALLMARKERS |
6 |
Function successful. Ignore this marker and all remaining markers. |
|
SUCCESS_IGNORETHISCOPYALL |
7 |
Function successful. Ignore this marker but copy all remaining markers. |
|
SUCCESS_PARTIAL_FAILURE |
8 |
Function called recursively. A least one call was successful, but some failed. |
|
SUCCESS_DLG_OK |
100 |
The "OK" button was pressed, and the dialog exited successfully. |
|
SUCCESS_DLG_CANCEL |
101 |
The "Cancel" button was pressed, and the dialog exited successfully. |
|
SUCCESS_DLG_CLOSE |
102 |
The "Close" button was pressed, and the dialog exited successfully. |
|
SUCCESS_DLG_EXIT |
103 |
The dialog exits successfully after selecting exit option from menu or by closing the window. |
|
SUCCESS_DLG_EXPORTANDEXIT |
104 |
The dialog exits successfully after selecting exit and export option, dialog parameters will have the resulting bitmap allocated. |
Value | Number | Description |
|
ERROR_TWAIN_STOP_ENUMERATION |
2 |
Stop enumeration. |
|
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_QFACTOR |
-21 |
Invalid QFactor specified. |
|
ERROR_OUTPUTTYPE |
-23 |
Invalid compression format. |
|
ERROR_BITPERPIXEL |
-27 |
Invalid bits/pixel. |
|
ERROR_WINDOWSIZE |
-28 |
Invalid window size. |
|
ERROR_NORMAL_ABORT |
-29 |
Escape key pressed - or user aborted operation. |
|
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_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_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_COMPRESSED_DATA_FAILURE |
-62 |
Internal error - call LEAD. |
|
ERROR_NO_STAMP |
-65 |
Stamp not found. |
|
ERROR_INTERNAL |
-74 |
Internal error. |
|
ERROR_BAD_DECODE_STATE |
-77 |
Premature end-of-line code. |
|
ERROR_VERSION_NUMBER |
-78 |
Bad version number. |
|
ERROR_TWAIN_BUMMER |
-80 |
TWAIN Failure due to unknown causes. |
|
ERROR_TWAIN_LOWMEMORY |
-81 |
TWAIN Not enough memory to perform operation. |
|
ERROR_TWAIN_NODS |
-82 |
TWAIN No Data Source. |
|
ERROR_TWAIN_MAXCONNECTIONS |
-83 |
TWAIN DS is connected to max possible apps. |
|
ERROR_TWAIN_OPERATIONERROR |
-84 |
TWAIN DS or DSM reported error, app shouldn't (no need for your app to report the error). |
|
ERROR_TWAIN_BADPROTOCOL |
-86 |
TWAIN Unrecognized MSG DG DAT combination. |
|
ERROR_TWAIN_CANCEL |
-90 |
TWAIN Operation was cancelled. |
|
ERROR_PANWINDOW_NOT_CREATED |
-91 |
PanWindow creation failed. |
|
ERROR_NOT_ENOUGH_IMAGES |
-92 |
There are not enough images to complete the task. |
|
ERROR_USER_ABORT |
-100 |
User has aborted operation. |
|
ERROR_FPX_INVALID_FORMAT_ERROR |
-101 |
Invalid FlashPix format. |
|
ERROR_FPX_FILE_WRITE_ERROR |
-102 |
Error writing file. |
|
ERROR_FPX_FILE_READ_ERROR |
-103 |
Error reading file. |
|
ERROR_FPX_FILE_NOT_FOUND |
-104 |
File not found. |
|
ERROR_FPX_COLOR_CONVERSION_ERROR |
-105 |
Color conversion error. |
|
ERROR_FPX_SEVER_INIT_ERROR |
-106 |
Server initialize error. |
|
ERROR_FPX_LOW_MEMORY_ERROR |
-107 |
Not enough memory available. |
|
ERROR_FPX_IMAGE_TOO_BIG_ERROR |
-108 |
Image too big. |
|
ERROR_FPX_INVALID_COMPRESSION_ERROR |
-109 |
Invalid compression. |
|
ERROR_FPX_INVALID_RESOLUTION |
-110 |
Invalid resolution. |
|
ERROR_FPX_INVALID_FPX_HANDLE |
-111 |
Invalid handle. |
|
ERROR_FPX_TOO_MANY_LINES |
-112 |
Too many lines. |
|
ERROR_FPX_BAD_COORDINATES |
-113 |
Invalid coordinates. |
|
ERROR_FPX_FILE_SYSTEM_FULL |
-114 |
File system full. |
|
ERROR_FPX_MISSING_TABLE |
-115 |
The table is missing. |
|
ERROR_FPX_RETURN_PARAMETER_TOO_LARGE |
-116 |
Parameter too large. |
|
ERROR_FPX_NOT_A_VIEW |
-117 |
Error view. |
|
ERROR_FPX_VIEW_IS_TRANFORMLESS |
-118 |
The view is transformless. |
|
ERROR_FPX_ERROR |
-119 |
General error. |
|
ERROR_FPX_UNIMPLEMENTED_FUNCTION |
-120 |
Unimplemented function. |
|
ERROR_FPX_INVALID_IMAGE_DESC |
-121 |
Invalid image description. |
|
ERROR_FPX_INVALID_JPEG_TABLE |
-122 |
Invalid jpeg table. |
|
ERROR_FPX_ILLEGAL_JPEG_ID |
-123 |
Illegal jpeg identifier. |
|
ERROR_FPX_MEMORY_ALLOCATION_FAILED |
-124 |
Memory allocation failed. |
|
ERROR_FPX_NO_MEMORY_MANAGEMENT |
-125 |
No memory management. |
|
ERROR_FPX_OBJECT_CREATION_FAILED |
-126 |
Object creation failed. |
|
ERROR_FPX_EXTENSION_FAILED |
-127 |
Extension_failed. |
|
ERROR_FPX_FREE_NULL_PTR |
-128 |
Free null pointer. |
|
ERROR_FPX_INVALID_TILE |
-129 |
Invalid tile. |
|
ERROR_FPX_FILE_IN_USE |
-130 |
File in use. |
|
ERROR_FPX_FILE_CREATE_ERROR |
-131 |
Error creating file. |
|
ERROR_FPX_FILE_NOT_OPEN_ERROR |
-132 |
File not open. |
|
ERROR_FPX_USER_ABORT |
-133 |
User abort. |
|
ERROR_FPX_OLE_FILE_ERROR |
-134 |
OLE File I/O error. |
|
ERROR_BAD_TAG |
-140 |
Bad TIFF tag. |
|
ERROR_INVALID_STAMP_SIZE |
-141 |
Stamp size is too big or invalid bits/pixel, etc. |
|
ERROR_BAD_STAMP |
-142 |
Stamp is present but data is corrupted. |
|
ERROR_DOCUMENT_NOT_ENABLED |
-143 |
Document capability is required to use this function. |
|
ERROR_IMAGE_EMPTY |
-144 |
Image is empty. |
|
ERROR_NO_CHANGE |
-145 |
The image hasn't changed. |
|
ERROR_LZW_LOCKED |
-146 |
The LZW capabilities are locked. |
|
ERROR_FPXEXTENSIONS_LOCKED |
-147 |
The FlashPix extension capabilities are locked. |
|
ERROR_ANN_LOCKED |
-148 |
One or more annotation objects are still locked. |
|
ERROR_EXCEPTION |
-149 |
An unspecified exception occured - could be memory access violations. |
|
ERROR_DLG_FAILED |
-150 |
An error occured during creation of the common dialog. |
|
ERROR_DLG_ALREADYINITIATED |
-151 |
You have already initialized the dialogs. |
|
ERROR_DLG_NOTINITIATED |
-152 |
You did not initialize the dialogs. |
|
ERROR_DLG_COLORNOTINITIALIZED |
-153 |
You did not initialize the dialogs with DLG_INIT_COLOR. |
|
ERROR_DLG_COLORDLL_UNABLETOLOAD |
-154 |
The dialogs could not load the LTCLR dll. |
|
ERROR_DLG_RESDLL_UNABLETOLOAD |
-155 |
The dialogs could not load the LTDLGRES dll. |
|
ERROR_LTDIS_NOT_LOADED |
-200 |
LTDIS DLL not loaded. |
|
ERROR_LTFIL_NOT_LOADED |
-201 |
LTFIL DLL not loaded. |
|
ERROR_LTANN_NOT_LOADED |
-202 |
Annotation DLL not loaded. |
|
ERROR_NO_VIDEO_MODULE |
-258 |
No video module present on machine. |
|
ERROR_INV_HANDLE |
-261 |
Invalid handle. |
|
ERROR_HOST_RESOLVE |
-270 |
Can't resolve hostname. |
|
ERROR_CANT_INITIALIZE |
-271 |
Can't initialize network. |
|
ERROR_NO_CONNECTION |
-272 |
No open network connections. |
|
ERROR_HOST_NOT_FOUND |
-273 |
Hostname not found. |
|
ERROR_NOT_SERVER |
-274 |
Computer is not a server. |
|
ERROR_NO_CONNECTIONS |
-275 |
No connection requests waiting. |
|
ERROR_CONNECT_REFUSED |
-276 |
Connection was refused. |
|
ERROR_IS_CONNECTED |
-277 |
Computer is already connected. |
|
ERROR_NET_UNREACH |
-278 |
Network is unreachable from host. |
|
ERROR_TIME_OUT |
-279 |
Connect attempt time out without connecting. |
|
ERROR_NET_DOWN |
-280 |
Network subsystem is down. |
|
ERROR_NO_BUFFERS |
-281 |
No buffer space is available, too many connections. |
|
ERROR_NO_FILE_DESCR |
-282 |
No more file handle available. |
|
ERROR_DATA_QUEUED |
-283 |
Data has been queued to send later. |
|
ERROR_UNKNOWN |
-284 |
Unkown network error has occured. |
|
ERROR_CONNECT_RESET |
-285 |
Connection was reset - socket might be unusable. |
|
ERROR_TRANSFER_ABORTED |
-286 |
Transfer was aborted. |
|
ERROR_DSHOW_FAILURE |
-287 |
DirectShow isn't installed correctly. |
|
ERROR_REGISTRY_READ |
-288 |
Error reading from the registry. |
|
ERROR_BUFFER_TOO_SMALL |
-290 |
The buffer size is too small. |
|
ERROR_DISK_ISFULL |
-295 |
Not enough disk space. |
|
ERROR_DXF_FILTER_MISSING |
-309 |
The DXF filter is needed to use this function. |
|
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_CAPTURE_CANNOT_CREATE_HOTKEY_WINDOW |
-313 |
Error creating the hotkey window. |
|
ERROR_MEDICAL_NOT_ENABLED |
-314 |
Medical Express capability is required to use this function. |
|
ERROR_JBIG_NOT_ENABLED |
-315 |
JBIG capability is required to use this function. |
|
ERROR_UNDO_STACK_EMPTY |
-316 |
Undo stack is empty - too many undos. |
|
ERROR_MEDICAL_NET_NOT_ENABLED |
-318 |
Medical Network Express capability is required to use this function. |
|
ERROR_JBIG_FILTER_MISSING |
-319 |
The JBIG filter is needed to use this function. |
|
ERROR_CAPTURE_STILL_IN_PROCESS |
-320 |
Capture is still in progress. |
|
ERROR_CAPTURE_INVALID_DELAY |
-321 |
Invalid delay specified. |
|
ERROR_CAPTURE_INVALID_COUNT |
-322 |
Invalid capture count specified. |
|
ERROR_CAPTURE_INVALID_INTERVAL |
-323 |
Invalid interval specified. |
|
ERROR_CAPTURE_HOTKEY_CONFLICTS_WITH_CANCELKEY |
-324 |
Hotkey Conflicts With Cancelkey. |
|
ERROR_CAPTURE_INVALID_AREA_TYPE |
-325 |
Invalid Area Type specified. |
|
ERROR_CAPTURE_NO_OPTION_STRUCTURE |
-326 |
Invalid or missing options strucuture. |
|
ERROR_CAPTURE_INVALID_FILL_PATTERN |
-327 |
Invalid fill pattern. |
|
ERROR_CAPTURE_INVALID_LINE_STYLE |
-328 |
Invalid line style. |
|
ERROR_CAPTURE_INVALID_INFOWND_POS |
-329 |
Invalid info window position. |
|
ERROR_CAPTURE_INVALID_INFOWND_SIZE |
-330 |
Invalid info window size. |
|
ERROR_CAPTURE_ZERO_AREA_SIZE |
-331 |
Zero Area Size for capture. |
|
ERROR_CAPTURE_FILE_ACCESS_FAILED |
-332 |
The specified filename could not be read. |
|
ERROR_CAPTURE_INVALID_32BIT_EXE_OR_DLL |
-333 |
The specified filename is not a valid 32bit EXE/DLL. |
|
ERROR_CAPTURE_INVALID_RESOURCE_INDEX |
-335 |
The index resource is out of range. |
|
ERROR_CAPTURE_NO_ACTIVE_WINDOW |
-336 |
No active window for capture. |
|
ERROR_CAPTURE_CANNOT_CAPTURE_WINDOW |
-337 |
Could not capture the window. |
|
ERROR_CAPTURE_STRING_ID_NOT_DEFINED |
-338 |
String ID Not Defined. |
|
ERROR_CAPTURE_DELAY_LESS_THAN_ZERO |
-339 |
Delay value cannot be less than zero. |
|
ERROR_CAPTURE_NO_MENU |
-340 |
No menu to capture. |
|
ERROR_WMF_FILTER_MISSING |
-349 |
WMF filter is needed to use this function. |
|
ERROR_BROWSE_FAILED |
-350 |
PanWindow creation failed. |
|
ERROR_NOTHING_TO_DO |
-351 |
There is nothing to do. No items was found. |
|
ERROR_LVKRN_MISSING |
-353 |
The LVKRN DLL is needed to use this function. |
|
ERROR_CMW_LOCKED |
-354 |
The CMW support is locked. |
|
ERROR_CMW_FILTER_MISSING |
-355 |
CMW filter is needed to use this function. |
|
ERROR_CMP_FILTER_MISSING |
-356 |
CMP filter is needed to use this function. |
|
ERROR_FAX_FILTER_MISSING |
-357 |
FAX filter is needed to use this function. |
|
ERROR_PDF_FILTER_MISSING |
-358 |
PDF filter is needed to use this function. |
|
ERROR_TIF_FILTER_MISSING |
-359 |
TIF filter is needed to use this function. |
|
ERROR_INV_HORZSIZE |
-360 |
The horizontal size is outside the specification. |
|
ERROR_INV_VERTSIZE |
-361 |
The veritical size is outside the specification. |
|
ERROR_ASPECTRATIO |
-362 |
Invalid pel aspect ratio. |
|
ERROR_BITRATE |
-363 |
Invalid bitrate. |
|
ERROR_VBV_BUFFER |
-364 |
VBV Buffer Size is isn't valid. |
|
ERROR_CHROMA_FORMAT |
-365 |
Invalid chroma format. |
|
ERROR_VIDEO_FORMAT |
-366 |
Invalid video format. |
|
ERROR_COLOR_PRIMARY |
-367 |
Invalid number of color primaries. |
|
ERROR_TRANSFER_CHAR |
-368 |
Invalid number of transfer characteristics. |
|
ERROR_MATRIX_COEFF |
-369 |
Invalid number of matrix coeeficients. |
|
ERROR_DISPLAY_HORZSIZE |
-370 |
Invalid horizontal display size. |
|
ERROR_DISPLAY_VERTSIZE |
-371 |
Invalid vertical display size. |
|
ERROR_INTRA_DCPREC |
-372 |
Invalid Intra DC Precision. |
|
ERROR_FCODE |
-373 |
Invalid f code. |
|
ERROR_SRCH_WINDOW |
-374 |
Invalid motion data search window. |
|
ERROR_PROFILEID |
-375 |
Invalid profile id. |
|
ERROR_LEVELID |
-376 |
Invalid level id. |
|
ERROR_PROFILEID_NS |
-377 |
Encoder doesn't support scalabale bitstreams. |