Error Codes

The following are the errors that you can test for with a try statement or by examining the return value of most functions

0

ERROR_FAILURE - Unknown error.

-1

ERROR_NO_MEMORY - Not enough memory available.

-2

ERROR_NO_BITMAP - Invalid bitmap handle.

-3

ERROR_MEMORY_TOO_LOW - Not enough memory available.

-4

ERROR_FILE_LSEEK - Error seeking to position.

-5

ERROR_FILE_WRITE - Error writing file.

-6

ERROR_FILE_GONE - File not present - abort.

-7

ERROR_FILE_READ - Error reading file.

-8

ERROR_INV_FILENAME - Invalid filename specified.

-9

ERROR_FILE_FORMAT - Invalid file format.

-10

ERROR_FILE_NOT_FOUND - File not found.

-11

ERROR_INV_RANGE - Invalid width/height.

-12

ERROR_IMAGE_TYPE - Image format recognized, but sub-type not supported.

-13

ERROR_INV_PARAMETER - Invalid parameter passed.

-14

ERROR_FILE_OPEN - Not able to open file.

-15

ERROR_UNKNOWN_COMP - Unknown compression format.

-16

ERROR_NOT_SUPPORTED - Not available for file format requested.

-17

ERROR_NOT_256_COLOR - VGA card only supports 256 colors (8 bit).

-18

ERROR_PRINTER - Printer error.

-19

ERROR_CRC_CHECK - Data CRC check error.

-21

ERROR_QFACTOR - Invalid QFactor specified.

-22

ERROR_TARGAINSTALL - TARGA not installed.

-23

ERROR_OutputType - Invalid compression format.

-24

ERROR_XORIGIN - X origin specified invalid.

-25

ERROR_YORIGIN - Y origin specified invalid.

-26

ERROR_VIDEOTYPE - Invalid video mode.

-27

ERROR_BITPERPIXEL - Invalid bits/pixel.

-28

ERROR_WINDOWSIZE - Invalid window size.

-29

ERROR_NORMAL_ABORT - Escape key pressed.

-30

ERROR_NOT_INITIALIZED - Internal error - call LEAD.

-31

ERROR_CU_BUSY - Internal error - call LEAD.

-32

ERROR_INVALID_TABLE_TYPE - Internal error - call LEAD.

-33

ERROR_UNEQUAL_TABLES - Internal error - call LEAD.

-34

ERROR_INVALID_BUFFER - Internal error - call LEAD.

-35

ERROR_MISSING_TILE_DATA - Internal error - call LEAD.

-36

ERROR_INVALID_QVALUE - Internal error - call LEAD.

-37

ERROR_INVALID_DATA - Internal error - call LEAD.

-38

ERROR_INVALID_COMPRESSED_TYPE - Internal error - call LEAD.

-39

ERROR_INVALID_COMPONENT_NUM - Internal error - call LEAD.

-40

ERROR_INVALID_PIXEL_TYPE - Internal error - call LEAD.

-41

ERROR_INVALID_PIXEL_SAMPLING - Internal error - call LEAD.

-42

ERROR_INVALID_SOURCE_FILE - Internal error - call LEAD.

-43

ERROR_INVALID_TARGET_FILE - Internal error - call LEAD.

-44

ERROR_INVALID_IMAGE_DIMS - Internal error - call LEAD.

-45

ERROR_INVALID_TILE_DIMS - Internal error - call LEAD.

-46

ERROR_INVALID_PIX_BUFF_DIMS - Internal error - call LEAD.

-47

ERROR_SEGMENT_OVERFLOW - Internal error - call LEAD.

-48

ERROR_INVALID_SUBSAMPLING - Internal error - call LEAD.

-49

ERROR_INVALID_Q_VIS_TABLE - Internal error - call LEAD.

-50

ERROR_INVALID_DC_CODE_TABLE - Internal error - call LEAD.

-51

ERROR_INVALID_AC_CODE_TABLE - Internal error - call LEAD.

-52

ERROR_INSUFFICIENT_DATA - Internal error - call LEAD.

-53

ERROR_MISSING_FUNC_POINTER - Internal error - call LEAD.

-54

ERROR_TOO_MANY_DC_CODE_TABLES - Internal error - call LEAD.

-55

ERROR_TOO_MANY_AC_CODE_TABLES - Internal error - call LEAD.

-56

ERROR_INVALID_SUBIMAGE - Internal error - call LEAD.

-57

ERROR_INVALID_ABORTION - Internal error - call LEAD.

-58

ERROR_CU_NO_SUPPORT - Internal error - call LEAD.

-59

ERROR_CU_FAILURE - Internal error - call LEAD.

-60

ERROR_BAD_POINTER - Internal error - call LEAD.

-61

ERROR_HEADER_DATA_FAILURE - Internal error - call LEAD.

-62

ERROR_COMPRESSED_DATA_FAILURE - Internal error - call LEAD.

-63

ERROR_FIXEDPAL_DATA - Fixed palette data not found.

-64

ERROR_LOADFONT_DATA - Fixed palette data not found.

-65

ERROR_NO_STAMP - Stamp not found.

-70

ERROR_G3CODE_INVALID - Invalid group 3 code.

-71

ERROR_G3CODE_EOF - Group3 code end of file.

-72

ERROR_G3CODE_EOL - Group3 code end of code.

-73

ERROR_PREMATURE_EOF - Premature EOF at scanline.

-74

ERROR_PREMATURE_EOL - Premature end-of-line code.

-75

ERROR_UNCOMP_EOF - Premature end-of-line code.

-76

ERROR_ACT_INCOMP - Premature end-of-line code.

-77

ERROR_BAD_DECODE_STATE - Premature end-of-line code.

-78

ERROR_VERSION_NUMBER - Bad version number.

-79

ERROR_TWAIN_NODSM - Source manager not found.

-80

ERROR_TWAIN_BUMMER - Failure due to unknown causes.

-81

ERROR_TWAIN_LOWMEMORY - Not enough memory to perform operation.

-82

ERROR_TWAIN_NODS - No Data Source.

-83

ERROR_TWAIN_MAXCONNECTIONS - DS is connected to max possible apps.

-84

ERROR_TWAIN_OPERATIONERROR - DS or DSM reported error, app shouldn't.

-85

ERROR_TWAIN_BADCAP - Unknown capability.

-86

ERROR_TWAIN_BADPROTOCOL - Unrecognized MSG DG DAT combination.

-87

ERROR_TWAIN_BADVALUE - Data parameter out of range.

-88

ERROR_TWAIN_SEQERROR - DG DAT MSG out of expected sequence.

-89

ERROR_TWAIN_BADDEST - Unknown destination App/Src in DSM_Entry.

-90

ERROR_TWAIN_CANCEL - Operation was cancelled.

-91

ERROR_PANWINDOW_NOT_CREATED - PanWindow was not created.

-100

ERROR_USER_ABORT - The user cancelled the operation.

-101

ERROR_FPX_INVALID_FORMAT - FPX error.

-102

ERROR_FPX_FILE_WRITE - FPX error.

-103

ERROR_FPX_FILE_READ - FPX error.

-104

ERROR_FPX_FILE_NOT_FOUND - FPX error.

-105

ERROR_FPX_COLOR_CONVERSION - FPX error.

-106

ERROR_FPX_SEVER_INIT - FPX error.

-107

ERROR_FPX_LOW_MEMORY - FPX error.

-108

ERROR_FPX_IMAGE_TOO_BIG - FPX error.

-109

ERROR_FPX_INVALID_COMPRESSION - FPX error.

-110

ERROR_FPX_INVALID_RESOLUTION - FPX error.

-111

ERROR_FPX_INVALID_FPX_HANDLE - FPX error.

-112

ERROR_FPX_TOO_MANY_LINES - FPX error.

-113

ERROR_FPX_BAD_COORDINATES - FPX error.

-114

ERROR_FPX_FILE_SYSTEM_FULL - FPX error.

-115

ERROR_FPX_MISSING_TABLE - FPX error.

-116

ERROR_FPX_RETURN_PARAMETER_TOO_LARGE - FPX error.

-117

ERROR_FPX_NOT_A_VIEW - FPX error.

-118

ERROR_FPX_VIEW_IS_TRANFORMLESS - FPX error.

-119

ERROR_FPX_ERROR - FPX error.

-120

ERROR_FPX_UNIMPLEMENTED_FUNCTION - FPX error.

-121

ERROR_FPX_INVALID_IMAGE_DESC - FPX error.

-122

ERROR_FPX_INVALID_JPEG_TABLE - FPX error.

-123

ERROR_FPX_ILLEGAL_JPEG_ID - FPX error.

-124

ERROR_FPX_MEMORY_ALLOCATION_FAILED - FPX error.

-125

ERROR_FPX_NO_MEMORY_MANAGEMENT - FPX error.

-126

ERROR_FPX_OBJECT_CREATION_FAILED - FPX error.

-127

ERROR_FPX_EXTENSION_FAILED - FPX error.

-128

ERROR_FPX_FREE_NULL_PTR - FPX error.

-129

ERROR_FPX_INVALID_TILE - FPX error.

-130

ERROR_FPX_FILE_IN_USE - FPX error.

-131

ERROR_FPX_FILE_CREATE_ERROR - FPX Error

-132

ERROR_FPX_FILE_NOT_OPEN_ERROR - FPX Error

-133

ERROR_FPX_USER_ABORT - FPX Error

-134

ERROR_FPX_OLE_FILE_ERROR - FPX Error

-140

ERROR_BAD_TAG - Bad TIFF tag.

-141

ERROR_INVALID_STAMP_SIZE - FPX error.

-142

ERROR_BAD_STAMP - Stamp is specified incorrectly (for example: too big or invalid bits per pixel)

-143

ERROR_DOCUMENT_NOT_ENABLED – Document/Medical capability is required to use this function.

-144

ERROR_IMAGE_EMPTY - Image is empty.

-145

ERROR_NO_CHANGE - Image has not changed.

-147

ERROR_FPXEXTENSIONS_LOCKED - FPX Extension capability is locked

-148

ERROR_ANN_LOCKED - Annotation object is locked

-150

ERROR_DLG_CANCELED - common dialog was canceled by user

-151

ERROR_DLG_FAILED - an error occurred during creation of the common dialog

-160

ERROR_ISIS_NOCURSCANNER - No ISIS Scanner selected

-161

ERROR_ISIS_SCANDRIVER_NOT_LOADED - ISIS Scanner driver failed to load

-162

ERROR_ISIS_CANCEL - ISIS operation canceled

-163

ERROR_ISIS_BAD_TAG_OR_VALUE - Bad ISIS Tag or Bad Tag Value

-164

ERROR_ISIS_NOT_READY - ISIS Scanner not ready

-165

ERROR_ISIS_NO_PAGE - No page in the ISIS Scanner

-166

ERROR_ISIS_JAM - ISIS Scanner Jam error

-167

ERROR_ISIS_SCANNER_ERROR - ISIS Scanner driver error

-168

ERROR_ISIS_BUSY - ISIS Scanner is busy

-169

ERROR_ISIS_FILE_ERROR - ISIS File driver error

-170

ERROR_ISIS_NETWORK_ERROR - ISIS Network error

-171

ERROR_ISIS_NOT_INSTALLED - ISIS is not installed

-310

ERROR_PAGE_NOT_FOUND - Page not found

-311

ERROR_DELETE_LAST_PAGE - You cannot delete a page from a file that has only one page.

-312

ERROR_NO_HOTKEY - There is no hotkey.

-313

ERROR_CANNOT_CREATE_HOTKEY_WINDOW - Error creating the hotkey window.

-314

ERROR_MEDICAL_NOT_ENABLED - Medical capability is required to use this function.

-315

ERROR_JBIG_NOT_ENABLED - JBIG capability is required.

-901

DICOM_ERR_LOCKED - Dicom support is locked. You must unlock the Medical Support.

-902

DICOM_ERR_MEMORY - Insufficient memory.

-903

DICOM_ERR_OPEN - Error opening the file.

-904

DICOM_ERR_READ - Error reading the file.

-905

DICOM_ERR_WRITE - Error writing to a file.

-906

DICOM_ERR_SEEK - Error during search.

-907

DICOM_ERR_END - Error - end of file.

-908

DICOM_ERR_FORMAT - Error - improper file format.

-909

DICOM_ERR_PARAMETER - Error - incorrect parameter.

-910

DICOM_ERR_IMAGE - Error - improper image.

-911

DICOM_ERR_COMPRESSION - Error - improper compression.

-912

DICOM_ERR_PHOTOMETRIC - Error - improper photometric type.

-913

DICOM_ERR_CONVERSION - Error converting the file.

-914

DICOM_ERR_RANGE - Error - out of range.

-915

DICOM_ERR_BITSPERPIXEL - Error - improper bits per pixel.

-916

DICOM_ERR_QFACTOR - Error - improper Q factor.