RecAPI
Error Handling Module

Error information. More...

Enumerations

enum  RETCODEINFO {
  RET_OK = 0,
  RET_WARNING,
  RET_MEMORY_ERROR,
  RET_FILE_ERROR,
  RET_SCANNER_ERROR,
  RET_IMAGE_ERROR,
  RET_OCR_ERROR,
  RET_TEXT_ERROR,
  RET_OTHER_ERROR,
  RET_UNKNOWN = -1
}
 Error code (return code) categories. More...
enum  RECERR {
  REC_OK = 0x00000000,
  FILE_ERR = 0x8004C101,
  FILE_SYNTAX_ERR = 0x8004C102,
  FILE_OPEN_ERR = 0x8004C103,
  FILE_NOTFOUND_ERR = 0x8004C104,
  FILE_READ_ERR = 0x8004C105,
  FILE_WRITE_ERR = 0x8004C106,
  FILE_ACCESS_ERR = 0x8004C107,
  FILE_REMOVE_ERR = 0x8004C108,
  FILE_CREATE_ERR = 0x8004C109,
  FILE_SEEK_ERR = 0x8004C10A,
  FILE_MEM_ERR = 0x8004C10B,
  FILE_DISKFULL_ERR = 0x8004C10C,
  FILE_IO_ERR = 0x8004C10D,
  FILE_SHARE_ERR = 0x8004C10E,
  FILE_ALREADYEXIST_ERR = 0x8004C10F,
  FILE_INVALIDFLAG_ERR = 0x8004C110,
  FILE_INVALIDPARAMETER_ERR = 0x8004C111,
  FILE_LOCKVIOLATION_ERR = 0x8004C112,
  FILE_DIRNOTEMPTY_ERR = 0x8004C113,
  FILE_INVALIDHANDLE_ERR = 0x8004C114,
  FILE_TOOLARGE_ERR = 0x8004C115,
  FILE_MUTEX_NOTAVAILABLE_ERR = 0x8004C116,
  FILE_CANTCREATE_MUTEX_ERR = 0x8004C117,
  FILE_CANTRELEASE_MUTEX_ERR = 0x8004C118,
  FILE_INIT_ERR = 0x8004C119,
  FILE_QUIT_ERR = 0x8004C11A,
  FILE_NOT_IMPLEMENTED_ERR = 0x8004C11B,
  FILE_INVALIDPOINTER_ERR = 0x8004C11C,
  FILE_INVALIDFUNCTION_ERR = 0x8004C11D,
  FILE_NOMORE_WARN = 0x0004C11E,
  MEM_NOTENOUGH_ERR = 0x8004C201,
  MEM_INVALIDPOINTER_ERR = 0x8004C202,
  CHR_ILLEGALCODE_ERR = 0x8004C301,
  CHR_ILLEGALSETTING_ERR = 0x8004C302,
  CHR_NOMORE_WARN = 0x0004C303,
  CHR_SETFILE_ERR = 0x8004C304,
  CHR_CODELENGTH_ERR = 0x8004C305,
  CHR_MISSINGEXPORT_ERR = 0x8004C306,
  CHR_LANGSET_CODEPAGE_ERR = 0x8004C307,
  CHR_INIT_ERR = 0x8004C308,
  CHR_MULTIPLELANG_FOUND_WARN = 0x0004C309,
  CHR_LANG_NOTFOUND_ERR = 0x8004C30A,
  CHR_LANG_DISABLED_WARN = 0x0004C30B,
  API_INCORRECTMODULEVERSION_ERR = 0x8004C401,
  API_INIT_ERR = 0x8004C402,
  API_QUIT_ERR = 0x8004C403,
  API_INIT_WARN = 0x0004C404,
  API_PROCESS_ABORTED_ERR = 0x8004C405,
  API_PROCESS_FINISH = 0x8004C406,
  API_MODULEMISSING_ERR = 0x8004C407,
  API_MODULELOAD_ERR = 0x8004C408,
  API_MODULEENTRY_ERR = 0x8004C409,
  API_MODULEINVALID_ERR = 0x8004C40A,
  API_MODULEINIT_ERR = 0x8004C40B,
  API_NOT_AVAILABLE_ERR = 0x8004C40C,
  API_ERROR_ERR = 0x8004C40D,
  API_GPFAULT_ERR = 0x8004C40E,
  API_PLATFORM_ERR = 0x8004C40F,
  API_STS_SYNTAX_ERR = 0x8004C410,
  API_STS_ERR = 0x8004C411,
  API_HARDLOCK_ERR = 0x8004C412,
  API_LICENSE_ERR = 0x8004C413,
  API_PARAMETER_ERR = 0x8004C414,
  API_BUSY_ERR = 0x8004C415,
  API_EVALDATE_EXPIRED_ERR = 0x8004C416,
  API_TIMEOUT_ERR = 0x8004C417,
  API_FILEFORMAT_ERR = 0x8004C418,
  API_INVALIDSESSION_ERR = 0x8004C419,
  NOT_IMPL_ERR = 0x8004C41A,
  API_DOTNET30_OR_LATER_MISSING_ERR = 0x8004C41B,
  API_CRYPT_MISS_WARN = 0x0004C41C,
  API_HARDTIMEOUT_ERR = 0x8004C41D,
  API_DOTNET40_OR_LATER_MISSING_ERR = 0x8004C41E,
  API_LICENSEMGR_ERR = 0x8004C41F,
  API_LICENSEVALIDATION_WARN = 0x0004C420,
  API_LANGUAGE_SET_ERR = 0x8004C421,
  API_ERRORS_HAPPENED_WARN = 0x0004C422,
  API_WARNINGS_HAPPENED_WARN = 0x0004C423,
  API_LICENSE_PAGECOUNT_ERR = 0x8004C424,
  API_LICENSEMGR_PROTOCOL_ERR = 0x8004C425,
  RSD_WARN = 0x0004C501,
  RSD_INTERNAL = 0x8004C502,
  RSD_FAIL = 0x8004C503,
  RSD_NA = 0x8004C504,
  RSD_ACCESS = 0x8004C505,
  RSD_CORRUPTED = 0x8004C506,
  RSD_NOMEMORY = 0x8004C507,
  RSD_MEMORYFAIL = 0x8004C508,
  RSD_NOFILE = 0x8004C509,
  RSD_CREATEFAIL = 0x8004C50A,
  RSD_OPENFAIL = 0x8004C50B,
  RSD_READONLY = 0x8004C50C,
  RSD_READFAIL = 0x8004C50D,
  RSD_WRITEFAIL = 0x8004C50E,
  RSD_CLOSEFAIL = 0x8004C50F,
  RSD_FILECORRUPTED = 0x8004C510,
  RSD_NOMSGFILE = 0x8004C511,
  RSD_NOMESSAGE = 0x8004C512,
  RSD_DLL_NOFILE = 0x8004C513,
  RSD_DLL_FORMAT = 0x8004C514,
  RSD_DLL_GETPROC = 0x8004C515,
  RSD_NOTOPENED = 0x8004C516,
  RSD_NOTLOADED = 0x8004C517,
  RSD_NODRIVER = 0x8004C518,
  RSD_BADVERSION = 0x8004C519,
  RSD_DRIVERFAIL = 0x8004C51A,
  RSD_NOCARD = 0x8004C51B,
  RSD_BADHANDLE = 0x8004C51C,
  RSD_PARAMID = 0x8004C51D,
  RSD_PARAMVALUE = 0x8004C51E,
  RSD_BADADFCOMMAND = 0x8004C51F,
  RSD_WARNSTARTMODE = 0x0004C520,
  RSD_BADSTARTMODE = 0x8004C521,
  RSD_BADTRANSFER = 0x8004C522,
  RSD_WARNPAPERSOURCE = 0x0004C523,
  RSD_BADPAPERSOURCE = 0x8004C524,
  RSD_WARNRESOLUTION = 0x0004C525,
  RSD_BADRESOLUTION = 0x8004C526,
  RSD_WARNMARGIN = 0x0004C527,
  RSD_BADMARGIN = 0x8004C528,
  RSD_WARNPAPERSIZE = 0x0004C529,
  RSD_BADPAPERSIZE = 0x8004C52A,
  RSD_WARNORIENTATION = 0x0004C52B,
  RSD_BADORIENTATION = 0x8004C52C,
  RSD_WARNDUPLEX = 0x0004C52D,
  RSD_BADDUPLEX = 0x8004C52E,
  RSD_WARNIMAGEINTERP = 0x0004C52F,
  RSD_BADIMAGEINTERP = 0x8004C530,
  RSD_BADCOLORINTERP = 0x8004C531,
  RSD_BADHALFTONE = 0x8004C532,
  RSD_WARNBRIGHTNESS = 0x0004C533,
  RSD_BADBRIGHTNESS = 0x8004C534,
  RSD_WARNCONTRAST = 0x0004C535,
  RSD_BADCONTRAST = 0x8004C536,
  RSD_BADMIDTONE = 0x8004C537,
  RSD_WARNLAMPCOLOR = 0x0004C538,
  RSD_BADLAMPCOLOR = 0x8004C539,
  RSD_BADCOMPRESSION = 0x8004C53A,
  RSD_BADFILETYPE = 0x8004C53B,
  RSD_BADINDICATION = 0x8004C53C,
  RSD_CONFIGURATIONID = 0x8004C53D,
  RSD_HOSTID = 0x8004C53E,
  RSD_SCSIID = 0x8004C53F,
  RSD_BADPARAMCOMBO = 0x8004C540,
  RSD_LINE_TOO_WIDE = 0x8004C541,
  RSD_NOIMAGE = 0x8004C542,
  RSD_BADIMAGEWIDTH = 0x8004C543,
  RSD_BADIMAGELENGTH = 0x8004C544,
  RSD_NOAUTOROTATE = 0x8004C545,
  RSD_TRUNCATED = 0x8004C546,
  RSD_NOTCAPABLE = 0x8004C547,
  RSD_NOTCONNECTED = 0x8004C548,
  RSD_NOTREADY = 0x8004C549,
  RSD_NOPAPER = 0x8004C54A,
  RSD_PAPERJAM = 0x8004C54B,
  RSD_DOUBLEFEED = 0x8004C54C,
  RSD_COVEROPEN = 0x8004C54D,
  RSD_BOTHFEEDERSLOADED = 0x8004C54E,
  RSD_RESERVED = 0x8004C54F,
  RSD_NOTRESERVED = 0x8004C550,
  RSD_SCANNERBUSY = 0x8004C551,
  RSD_SCANNERSTOP = 0x8004C552,
  RSD_SCANNERFAIL = 0x8004C553,
  RSD_TIMEOUT = 0x8004C554,
  RSD_USER_CANCELLED = 0x8004C555,
  RSD_ABORTED = 0x8004C556,
  RSD_NOTPOSSIBLE = 0x8004C557,
  RSD_PAPERPICK = 0x8004C558,
  IMF_READ_ERR = 0x8004C601,
  IMF_WRITE_ERR = 0x8004C602,
  IMF_INIT_ERR = 0x8004C603,
  IMF_OPEN_ERR = 0x8004C604,
  IMF_CLOSE_ERR = 0x8004C605,
  IMF_CREATE_ERR = 0x8004C606,
  IMF_MEMORY_ERR = 0x8004C607,
  IMF_NOTSUP_ERR = 0x8004C608,
  IMF_TAGMISSING_ERR = 0x8004C609,
  IMF_COMP_ERR = 0x8004C60A,
  IMF_IMGFORM_ERR = 0x8004C60B,
  IMF_PAGENUM_ERR = 0x8004C60C,
  IMF_FILEFORMAT_ERR = 0x8004C60D,
  IMF_COLOR_ERR = 0x8004C60E,
  IMF_TMPFILE_ERR = 0x8004C60F,
  IMF_APPEND_ERR = 0x8004C610,
  IMF_FILENOTEMPTY_ERR = 0x8004C611,
  IMF_FAXVIEWMISS_ERR = 0x8004C612,
  IMF_PASSWORD_WARN = 0x0004C613,
  IMF_EMPTYHANDLE_WARN = 0x0004C614,
  IMF_PDFAPPENDONLY_ERR = 0x8004C615,
  IMF_READ_WARN = 0x0004C616,
  IMF_COMP_WARN = 0x0004C617,
  IMF_PASSWORD_SYNTAX_WARN = 0x0004C618,
  IMF_PASSWORD_ERR = 0x8004C619,
  IMF_CRYPT_NOTSUP_ERR = 0x8004C61A,
  IMF_FONT_MISSING_WARN = 0x0004C61B,
  IMF_PDFCHANGEDXREF_WARN = 0x0004C61C,
  IMF_FONT_MISSING_ERR = 0x8004C61D,
  IMG_SETTING_ERR = 0x8004C701,
  IMG_NOTENOUGHMEMORY_ERR = 0x8004C702,
  IMG_RECT_ERR = 0x8004C703,
  IMG_DPI_ERR = 0x8004C704,
  IMG_NOTFOUND_ERR = 0x8004C705,
  IMG_COMPRESSED_ERR = 0x8004C706,
  IMG_BITMAPADDRESS_ERR = 0x8004C707,
  IMG_BITSPERPIXEL_ERR = 0x8004C708,
  IMG_NOTATTACHED_ERR = 0x8004C709,
  IMG_HANDLE_ERR = 0x8004C70A,
  IMG_BUFFEROVERFLOW_ERR = 0x8004C70B,
  IMG_ACCESS_ERR = 0x8004C70C,
  IMG_NOMORE_WARN = 0x0004C70D,
  IMG_SIZE_ERR = 0x8004C70E,
  IMG_INVALIDOP_ERR = 0x8004C70F,
  IMG_ZONE_ERR = 0x8004C710,
  IMG_DPI_WARN = 0x0004C711,
  IMG_ANCHOR_WARN = 0x0004C712,
  IMG_ANCHORNOTFOUND_ERR = 0x8004C713,
  IMG_NOTEXTZONE_WARN = 0x0004C714,
  IMG_ANCHORNOTEXIST_ERR = 0x8004C715,
  IMG_TEMPLATENOTMATCHED_ERR = 0x8004C716,
  IMG_ANCHOR_CONTENT_ERR = 0x8004C717,
  IMG_ANCHORMOREFOUND_WARN = 0x8004C718,
  IMG_TRANSFORM_ERR = 0x8004C719,
  IMG_MATCHING_LOW_CONFIDENCE = 0x8004C71A,
  IMG_ANCHOR_CHECKNOTFOUND_ERR = 0x8004C71B,
  IMG_ANCHOR_REFERENCENOTFOUND_ERR = 0x8004C71C,
  IMG_ANCHOR_MOREREFERENCE_ERR = 0x8004C71D,
  IMG_ANCHOR_SELECTORNOTFOUND_ERR = 0x8004C71E,
  IMG_ANCHOR_RECOGNITION_ERR = 0x8004C71F,
  IMG_ANCHOR_SKIP_WARN = 0x0004C720,
  IMG_ANCHOR_VALUE_WARN = 0x0004C721,
  IMG_ANCHOR_ZONEISNOTANCHORED_WARN = 0x0004C722,
  IMG_ANCHOR_TOOFEWANCHORS_WARN = 0x0004C723,
  IMG_ANCHOR_TOOMANYANCHORS_WARN = 0x0004C724,
  IMG_ANCHOR_POSITION_WARN = 0x0004C725,
  IMG_ANCHOR_SIMILARTEXT_WARN = 0x0004C726,
  IMG_ANCHOR_NOTREFERENCED_WARN = 0x0004C727,
  IMG_ANCHOR_CHECKDRIFTTOOLARGE_WARN = 0x0004C728,
  IMG_ANCHOR_DRIFTNOTCONSISTENT_WARN = 0x0004C729,
  IMG_ANCHOR_CHECKANCHORSKIPPED_WARN = 0x0004C72A,
  IMG_TEMPLATEFAILED_WARN = 0x0004C72B,
  DC_INVALIDNAME_ERR = 0x8004DF01,
  DC_EXISTINGNAME_ERR = 0x8004DF02,
  DC_EXISTINGFOLDER_ERR = 0x8004DF03,
  DC_HANDLE_ERR = 0x8004DF04,
  DC_EMPTYCLASS_ERR = 0x8004DF05,
  DC_NOTSAVED_ERR = 0x8004DF06,
  DC_NOTTRAINED_ERR = 0x8004DF07,
  DC_NOSUCHATTRIBUTE_ERR = 0x8004DF08,
  DC_UNKNOWNEXTENSION_ERR = 0x8004DF09,
  DC_NOSUCHCLASS_ERR = 0x8004DF0A,
  DC_NOTEXT_ERR = 0x8004DF0B,
  DC_ONECLASS_ERR = 0x8004DF0C,
  DC_TOOFEWDOCUMENT_WARN = 0x0004DF0D,
  DC_NOTENOUGHINFO_WARN = 0x0004DF0E,
  DC_INCOMPATIBLEDOCTYPE_ERR = 0x8004DF0F,
  DC_SYNTAX_ERR = 0x8004DF10,
  DC_NOCLASS_ERR = 0x8004DF11,
  PAGE_NOTFOUND_ERR = 0x8004C801,
  PAGE_HANDLE_ERR = 0x8004C802,
  PAGE_NOT_IN_PAGESTORE_ERR = 0x8004C803,
  MGR_ERR = 0x8004C901,
  NO_TXT_WARN = 0x0004C902,
  OCR_NO_MODULE_WARN = 0x0004C903,
  ZONE_NOTFOUND_ERR = 0x8004C904,
  ZONE_NOTFOUND_WARN = 0x0004C905,
  ZONE_POSITION_ERR = 0x8004C906,
  ZONE_EXISTING_SEQ_ERR = 0x8004C907,
  ZONE_FILE_ERR = 0x8004C908,
  ZONE_SIZE_ERR = 0x8004C909,
  ZONE_SHAPE_ERR = 0x8004C90A,
  ZONE_IMAGE_DOWNSAMPLED_WARN = 0x0004C90B,
  ZONE_SIZE_WARN = 0x0004C90C,
  ZONE_NO_FIELDNAME_WARN = 0x0004C90D,
  EXTRACTED_TXT_WARN = 0x0004C90E,
  LANGDET_INHERITED_WARN = 0x0004C90F,
  ZONE_OUTOFTHEIMAGE_ERR = 0x8004C910,
  API_MTX_INTERNAL_ERR = 0x8004C911,
  MOR_INIT_ERR = 0x8004CA01,
  MOR_DOS_ERR = 0x8004CA02,
  MOR_BCTNOTFOUND_ERR = 0x8004CA03,
  MOR_BCTCORRUPTED_ERR = 0x8004CA04,
  MOR_BCTVERSION_ERR = 0x8004CA05,
  MOR_TOOLARGE_ERR = 0x8004CA06,
  MOR_FILECORRUPTED_ERR = 0x8004CA07,
  MOR_INTERNAL_ERR = 0x8004CA08,
  MOR_GPFAULT_ERR = 0x8004CA09,
  BAR_ERR = 0x8004CB01,
  BAR_NOT_ENOUGH_MEMORY_ERR = 0x8004CB02,
  BAR_NO_CODE_ERR = 0x8004CB03,
  BAR_INVALID_CODE_ERR = 0x8004CB04,
  BAR_NOT_DEFINIT_ERR = 0x8004CB05,
  BAR_INCOMPATIBLE_TYPE_ERR = 0x8004CB06,
  BAR_DEPRECATED_TYPE_ERR = 0x8004CB07,
  BAR_TYPE_WARN = 0x0004CB08,
  BAR_UNCOMBINABLE_TYPE_ERR = 0x8004CB09,
  BAR_NOTSUPPORTED_TYPE_ERR = 0x8004CB0A,
  BAR_FAMILY_FORCED_WARN = 0x0004CB0B,
  BAR_TOOLARGE_ERR = 0x8004CB0C,
  BAR_NOTSUPPORTED_CHAR_WARN = 0x0004CB0D,
  DOT_ERR = 0x8004CC01,
  OMR_ERR = 0x8004CD01,
  HNR_TBSCORRUPTED_ERR = 0x8004CE01,
  HNR_SYNTAX_WARN = 0x0004CE02,
  RER_INTERNAL_ERR = 0x8004CF01,
  RER_NOKNOWLEDGEFILE_ERR = 0x8004CF02,
  RER_NOCHARSET_SET_ERR = 0x8004CF03,
  RER_NOTSUPPORTED_CHARSET_ERR = 0x8004CF04,
  RER_SPECFILE_NOTFOUND_ERR = 0x8004CF05,
  SPL_MEMORY_ERR = 0x8004D001,
  SPL_NOINIT_ERR = 0x8004D002,
  SPL_FOPEN_ERR = 0x8004D003,
  SPL_FREAD_ERR = 0x8004D004,
  SPL_FWRITE_ERR = 0x8004D005,
  SPL_BADFILEFORMAT_ERR = 0x8004D006,
  SPL_INIT_ERR = 0x8004D007,
  SPL_CLOSE_ERR = 0x8004D008,
  SPL_LANG_ERR = 0x8004D009,
  SPL_HANDLE_ERR = 0x8004D00A,
  SPL_NOMORE_WARN = 0x0004D00B,
  SPL_INTERNAL_ERR = 0x8004D00C,
  SPL_DUPWORD_ERR = 0x8004D00D,
  SPL_NOTFOUND_ERR = 0x8004D00E,
  SPL_BADWORD_ERR = 0x8004D00F,
  SPL_UDSECT_ERR = 0x8004D010,
  SPL_REGEXP_SYNTAX_ERR = 0x8004D011,
  SPL_EXISTSECT_WARN = 0x0004D012,
  SPL_REGEXP_NOMATCH_ERR = 0x8004D014,
  SPL_REGEXP_NOMATCH_WARN = 0x0004D015,
  SPL_REGEXP_EXCLUSIVE_ERR = 0x8004D016,
  SPL_REGEXP_WRONGRANGE_ERR = 0x8004D017,
  SPL_REGEXP_SETINRANGE_ERR = 0x8004D018,
  SPL_REGEXP_INVALIDCHR_ERR = 0x8004D019,
  SPL_REGEXP_UNBALANCED1_ERR = 0x8004D01A,
  SPL_REGEXP_UNBALANCED2_ERR = 0x8004D01B,
  SPL_REGEXP_UNBALANCED3_ERR = 0x8004D01C,
  SPL_REGEXP_WRONGNUMBER_ERR = 0x8004D01D,
  SPL_REGEXP_WRONGUPPER_ERR = 0x8004D01E,
  SPL_REGEXP_ESCAPE_ERR = 0x8004D01F,
  SPL_REGEXP_HEXA_ERR = 0x8004D020,
  SPL_REGEXP_MULTIPLICATOR_ERR = 0x8004D021,
  SPL_REGEXP_ZERO_WIDTH_ERR = 0x8004D022,
  SPL_REGEXP_UNEXPECTED_ERR = 0x8004D023,
  APIP_INIT_ERR = 0x8004D101,
  APIP_PARAM_ERR = 0x8004D102,
  APIP_NOMORE_WARN = 0x0004D103,
  APIP_INTERNAL_ERR = 0x8004D104,
  L_WARNINGS = 0x0004DA01,
  L_WARNING_NOTFOUND = 0x0004DA02,
  L_WARNING_NOTOPENED = 0x0004DA03,
  L_WARNING_MISSING = 0x0004DA04,
  L_WARNING_SUBSTITUTED = 0x0004DA05,
  L_ERRORS = 0x8004DA06,
  L_ERROR_NOID = 0x8004DA07,
  L_ERROR_OBJID = 0x8004DA08,
  L_ERROR_OBJTYPE = 0x8004DA09,
  L_ERROR_FILE = 0x8004DA0A,
  L_ERROR_FILE_OPEN = 0x8004DA0B,
  L_ERROR_FILE_CLOSE = 0x8004DA0C,
  L_ERROR_FILE_SEEK = 0x8004DA0D,
  L_ERROR_FILE_READ = 0x8004DA0E,
  L_ERROR_FILE_WRITE = 0x8004DA0F,
  L_ERROR_FILE_FORMAT = 0x8004DA10,
  L_ERROR_PARAMETER = 0x8004DA11,
  L_ERROR_RANGE = 0x8004DA12,
  L_ERROR_CALL = 0x8004DA13,
  L_ERROR_CONVERTER = 0x8004DA14,
  L_ERROR_BADVERSION = 0x8004DA15,
  L_ERROR_IMAGE = 0x8004DA16,
  L_ERROR_DTK = 0x8004DA17,
  L_ERROR_READONLY = 0x8004DA18,
  L_ERROR_OUTPUT_MODE = 0x8004DA19,
  L_ERROR_APPSET = 0x8004DA1A,
  L_ERROR_PRERENDERING = 0x8004DA1B,
  L_ERROR_NOACCESS = 0x8004DA1C,
  L_ERROR_NOTIMPLEMENTED = 0x8004DA1D,
  L_ERROR_MASTERSOFT = 0x8004DA1E,
  L_ERROR_ABORTED = 0x8004DA1F,
  L_ERROR_CONV_NODOCUMENT = 0x8004DA20,
  L_ERROR_CONV_LECSO = 0x8004DA21,
  L_ERROR_TOO_MANY_SHEETS = 0x8004DA22,
  L_ERROR_DOCFORMATTER = 0x8004DA23,
  L_ERROR_STOP = 0x8004DA24,
  L_ERROR_VOCALIZER = 0x8004DA25,
  L_ERROR_NO_VOCALIZER_VOICE = 0x8004DA26,
  L_ERROR_REALSPEAK = 0x8004DA27,
  L_ERROR_NO_REALSPEAK_VOICE = 0x8004DA28,
  L_ERROR_CODEC = 0x8004DA29,
  L_FATALERRORS = 0x8004DB01,
  L_FERROR_MEMORY = 0x8004DB02,
  L_FERROR_INTERNAL = 0x8004DB03,
  L_FERROR_FILEFORMAT = 0x8004DB04,
  L_FERROR_INDEX = 0x8004DB05,
  L_FERROR_RECAPI = 0x8004DB06,
  L_FERROR_NOSET = 0x8004DB07,
  L_FERROR_PERMISSION = 0x8004DB08,
  L_FERROR_MISSING = 0x8004DB09,
  BRA_INIT_ERR = 0x8004D201,
  MAT_INIT_ERR = 0x8004D301,
  RESERVED_P_INIT_ERR = 0x8004D401,
  MTX_INIT_ERR = 0x8004D501,
  FRX_INIT_ERR = 0x8004D601,
  ASN_INIT_ERR = 0x8004D701,
  MNG_INIT_ERR = 0x8004D801,
  STSMN_HANDLE_ERR = 0x8004D901,
  STSMN_NOSETTING_ERR = 0x8004D902,
  STSMN_BADTYPE_ERR = 0x8004D903,
  STSMN_OPNOTALLOWED_ERR = 0x8004D904,
  STSMN_PARAMETER_ERR = 0x8004D905,
  STSMN_INVALIDFILE_ERR = 0x8004D906,
  STSMN_NOTFOUND_ERR = 0x8004D907,
  STSMN_FULLSAVEDTREE_WARN = 0x0004D908,
  STSMN_BADORMISSINGREF_ERR = 0x8004D909,
  STSMN_EMPTYPENDVAL_WARN = 0x0004D90A,
  STSMN_NOSESSION_ERR = 0x8004D90B,
  IPRO_E_NOTALLOWED = 0x8004C001,
  IPRO_E_TOOMANYENGINE = 0x8004C002,
  IPRO_E_ENGINEINITFAILED = 0x8004C003,
  IPRO_E_IMAGEFILESINITFAILED = 0x8004C004,
  IPRO_E_MEMORYBITMAPSINITFAILED = 0x8004C005,
  IPRO_E_UDMANAGERINITFAILED = 0x8004C006,
  IPRO_E_BARCODETYPESINITFAILED = 0x8004C007,
  IPRO_E_MODULEINFOSINITFAILED = 0x8004C008,
  IPRO_E_UILANGUAGESINITFAILED = 0x8004C009,
  IPRO_E_SPELLLANGUAGESINITFAILED = 0x8004C00A,
  IPRO_E_DOCUMENTSINITFAILED = 0x8004C00B,
  IPRO_E_SCANNERSINITFAILED = 0x8004C00C,
  IPRO_E_SCANNERINITFAILED = 0x8004C00D,
  IPRO_E_CONVERTERSINITFAILED = 0x8004C00E,
  IPRO_E_SETTINGMANAGERINITFAILED = 0x8004C00F,
  IPRO_E_OBJECTISINVALID = 0x8004C010,
  IPRO_E_CONVERTERMANAGERUNKNOWN = 0x8004C011,
  IPRO_E_CONVERTERNOTFOUND = 0x8004C012,
  IPRO_W_ZONEINVALID = 0x0004C013,
  DOCUMENT_INVALID_ERR = 0x8004DC01,
  DOCUMENT_ACCESS_ERR = 0x8004DC02,
  DOCUMENT_RDONLY_SAVE_ERR = 0x8004DC03,
  DOCUMENT_CONVERT_ERR = 0x8004DC04,
  DOCUMENT_SHAREVIOLATION_ERR = 0x8004DC05,
  DOCUMENT_NOTEXIST_ERR = 0x8004DC06,
  DOCUMENTMGR_NOTINIT_ERR = 0x8004DC07,
  DOCUMENT_CANCEL = 0x8004DC08,
  DOCUMENT_VERSION_ERR = 0x8004DC09,
  DOCUMENT_ZOP_ERR = 0x8004DC0A,
  DOCUMENT_ZOP_NOTFOUND_ERR = 0x8004DC0B,
  DOCUMENT_ZOP_BADSHAPE_ERR = 0x8004DC0C,
  DOCUMENT_ZOP_NEEDOCR_ERR = 0x8004DC0D,
  WORKFLOW_START_ERR = 0x8004DD01,
  WORKFLOW_PROCESSED_ERR = 0x8004DD02,
  WORKFLOW_INTERACTIVE_ERR = 0x8004DD03,
  WORKFLOW_INPUT_ERR = 0x8004DD04,
  WORKFLOW_OUTPUT_ERR = 0x8004DD05,
  WORKFLOW_CREATION_ERR = 0x8004DD06,
  WORKFLOW_INACTIVE_ERR = 0x8004DD07,
  WORKFLOW_ACTIVE_ERR = 0x8004DD08,
  WORKFLOW_INVALID_ERR = 0x8004DD09,
  WORKFLOW_DOCUMENT_ERR = 0x8004DD0A,
  WORKFLOW_ITEMNOTFOUND_ERR = 0x8004DD0B,
  WORKFLOW_PARAMNOTFOUND_ERR = 0x8004DD0C,
  WORKFLOW_PARAMEXISTS_ERR = 0x8004DD0D,
  WORKFLOW_RECCHARS_INF = 0x0004DD0E,
  WORKFLOW_RECWORDS_INF = 0x0004DD0F,
  WORKFLOW_RECREJCHARS_INF = 0x0004DD10,
  WORKFLOW_LDFAXCORR_INF = 0x0004DD11,
  WORKFLOW_LDROT_INF = 0x0004DD12,
  WORKFLOW_LDSKEW_WARN = 0x0004DD13,
  WORKFLOW_BARCODE_INF = 0x0004DD14,
  WORKFLOW_BARCODE_ERR = 0x8004DD15,
  WORKFLOW_LDPATTERN_WARN = 0x0004DD16,
  WORKFLOW_HWND_ERR = 0x8004DD17,
  WORKFLOW_HWNDCREATE_ERR = 0x8004DD18,
  WORKFLOW_HWND_WARN = 0x0004DD19,
  WORKFLOW_RECLANGCONF_WARN = 0x0004DD1A,
  WORKFLOW_ZNMANUAL_INF = 0x0004DD1B,
  WORKFLOW_ZNTEMPLATE_INF = 0x0004DD1C,
  WORKFLOW_IPNOTOOL_ERR = 0x8004DD1D,
  WORKFLOW_IPLOAD_ERR = 0x8004DD1E,
  WORKFLOW_IPTEMPLATE_INF = 0x0004DD1F,
  WORKFLOW_IPMANUAL_INF = 0x0004DD20,
  WORKFLOW_IPMANUAL_WARN = 0x0004DD21,
  WORKFLOW_EDBLANK_WARN = 0x0004DD22,
  WORKFLOW_EDCONVERT_WARN = 0x0004DD23,
  WORKFLOW_EDNOFILE_WARN = 0x0004DD24,
  WORKFLOW_DEPAGERANGE_ERR = 0x8004DD25,
  WORKFLOW_DETEMPLATE_ERR = 0x8004DD26,
  WORKFLOW_LDPDFCREATE_ERR = 0x8004DD27,
  WORKFLOW_GOOGLEDOCS_FILETYPE_ERR = 0x8004DD28,
  WORKFLOW_EVERNOTE_FILETYPE_ERR = 0x8004DD29,
  WORKFLOW_LDBLANKPAGE_WARN = 0x0004DD2A,
  WORKFLOW_INTERACTIONSUPRESSED_WARN = 0x0004DD2B,
  WORKFLOW_CANCEL_WARN = 0x0004DD2C,
  WORKFLOW_PAGECLASS_WARN = 0x0004DD2D,
  WORKFLOW_PAGECLASS_INF = 0x0004DD2E,
  LINK_MORESPACE_ERR = 0x8004DE01,
  LINK_CANCEL_WARN = 0x0004DE02,
  LINK_NOTAUTHORIZED_ERR = 0x8004DE03,
  LINK_NOTFOUND_ERR = 0x8004DE04,
  LINK_FILEEXISTS_ERR = 0x8004DE05,
  LINK_EVERNOTE_BAD_DATA_FORMAT = 0x8004DE06,
  LINK_EVERNOTE_PERMISSION_DENIED = 0x8004DE07,
  LINK_EVERNOTE_DATA_REQUIRED = 0x8004DE08,
  LINK_EVERNOTE_LIMIT_REACHED = 0x8004DE09,
  LINK_EVERNOTE_QUOTA_REACHED = 0x8004DE0A,
  LINK_EVERNOTE_INVALID_AUTH = 0x8004DE0B,
  LINK_EVERNOTE_AUTH_EXPIRED = 0x8004DE0C,
  LINK_EVERNOTE_DATA_CONFLICT = 0x8004DE0D,
  LINK_EVERNOTE_ENML_VALIDATION = 0x8004DE0E,
  LINK_EVERNOTE_SHARD_UNAVAILABLE = 0x8004DE0F,
  LINK_EVERNOTE_TOO_WHATEVER = 0x8004DE10,
  LINK_EVERNOTE_UNSUPPORTED_OPERATION = 0x8004DE11,
  LINK_EVERNOTE_TAKEN_DOWN = 0x8004DE12,
  LINK_EVERNOTE_RATE_LIMIT_REACHED = 0x8004DE13,
  LINK_EVERNOTE_BUSINESS_SECURITY_LOGIN_REQUIRED = 0x8004DE14,
  LINK_EVERNOTE_DEVICE_LIMIT_REACHED = 0x8004DE15
}
 Error codes. More...

Functions

RECERR RECAPIKRN kRecGetLastError (LONG *pErrExt, LPTSTR pErrStr, int buflen)
 Getting last error.
RECERR RECAPIKRN kRecGetLastErrorEx (LONG *pErrExt, LPTSTR *ppErrStr, LPTSTR *ppErrXml)
 Getting last error.
RETCODEINFO RECAPIKRN kRecGetErrorInfo (RECERR ErrCode, LPCSTR *lpErrSym)
 Getting additional information about an error.
RECERR RECAPIKRN kRecGetErrorUIText (RECERR ErrCode, LONG ErrExt, LPCTSTR lpErrStr, LPTSTR lpErrUIText, int *pBuffLen)
 Getting the error text of an error.
RECKRNDLL LPCSTR RECKRNCALL watch_recerr (RECERR ErrCode)
 Debugging utility function: Getting a string with the symbolic error code.

Detailed Description

Error information.

The majority of RecAPI operations have the return value type RECERR. This is an enumeration type collecting all possible error codes in OmniPage CSDK v20. The integrating application should always check the return value of RecAPI functions to make sure that the function has successfully completed (REC_OK) its operation. Use this module to obtain information about errors that occured in the last operation, and see their categories.


Enumeration Type Documentation

enum RECERR

Error codes.

This is the type of the return value of almost all the function of RecAPI. The error codes can be grouped into some classes according to the module they come from. Thus the name of the enum type element can give some information about not only the type of the error, but also the module, where it has occured.

The functions kRecGetErrorInfo and kRecGetErrorUIText can give information about the specified error codes at runtime. During debugging, a useful tool can be the function watch_recerr.

Note:
Error messages with the prefix L_ relate to the Layout Analyser.
Enumerator:
REC_OK 

Successful operation, no error.

FILE_ERR 

File operation internal error.

FILE_SYNTAX_ERR 

File handling syntax error.

FILE_OPEN_ERR 

File open error.

FILE_NOTFOUND_ERR 

File not found.

FILE_READ_ERR 

File read error.

FILE_WRITE_ERR 

File write error.

FILE_ACCESS_ERR 

File access denied.

FILE_REMOVE_ERR 

File removal error.

FILE_CREATE_ERR 

File creation error.

FILE_SEEK_ERR 

File seek error.

FILE_MEM_ERR 

Out of memory during file I/O.

FILE_DISKFULL_ERR 

Disk full.

FILE_IO_ERR 

File I/O error.

FILE_SHARE_ERR 

Sharing violation.

FILE_ALREADYEXIST_ERR 

File already exists.

FILE_INVALIDFLAG_ERR 

Invalid flag specified in a function call.

FILE_INVALIDPARAMETER_ERR 

Invalid parameter specified in a function call.

FILE_LOCKVIOLATION_ERR 

File locking error.

FILE_DIRNOTEMPTY_ERR 

Directory is not empty.

FILE_INVALIDHANDLE_ERR 

Invalid handle specified in a function call.

FILE_TOOLARGE_ERR 

File size limit error.

FILE_MUTEX_NOTAVAILABLE_ERR 

Mutex is not available.

FILE_CANTCREATE_MUTEX_ERR 

Mutex cannot be created.

FILE_CANTRELEASE_MUTEX_ERR 

Mutex cannot be released.

FILE_INIT_ERR 

File system initialization error.

FILE_QUIT_ERR 

File Manager's module quit error.

FILE_NOT_IMPLEMENTED_ERR 

Function call not implemented yet.

FILE_INVALIDPOINTER_ERR 

Invalid pointer specified in a function call.

FILE_INVALIDFUNCTION_ERR 

The specified flag combination is not supported.

FILE_NOMORE_WARN 

Internal use only.

MEM_NOTENOUGH_ERR 

Not enough memory for this memory operation.

MEM_INVALIDPOINTER_ERR 

Invalid pointer to a memory object.

CHR_ILLEGALCODE_ERR 

Illegal internal code as a parameter.

CHR_ILLEGALSETTING_ERR 

Set parameter is not acceptable (e.g. size mismatch.)

CHR_NOMORE_WARN 

End of list of available Code Pages.

CHR_SETFILE_ERR 

Error while loading the Code Page Definition file (RECOGN.SET).

CHR_CODELENGTH_ERR 

Length of exported code exceeds buffer size.

CHR_MISSINGEXPORT_ERR 

Character conversion is not available for the given character.

CHR_LANGSET_CODEPAGE_ERR 

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.

CHR_INIT_ERR 

Character Set and Code Pages module initialization error.

CHR_MULTIPLELANG_FOUND_WARN 

There are more than one matching languages.

CHR_LANG_NOTFOUND_ERR 

There are no matching languages.

CHR_LANG_DISABLED_WARN 

The specified language is not enabled.

API_INCORRECTMODULEVERSION_ERR 

Inconsistent Engine configuration.

API_INIT_ERR 

Engine initialization error, or no appropriate license.

API_QUIT_ERR 

Engine termination error.

API_INIT_WARN 

Module initialization warning.

API_PROCESS_ABORTED_ERR 

Application has aborted the current process.

API_PROCESS_FINISH 

Application has terminated the current recognition process. Recognized text is kept.

API_MODULEMISSING_ERR 

Module not present or not licensed.

API_MODULELOAD_ERR 

OS could not load a module.

API_MODULEENTRY_ERR 

Missing entry in a module.

API_MODULEINVALID_ERR 

Invalid module.

API_MODULEINIT_ERR 

Module initialization error.

API_NOT_AVAILABLE_ERR 

The requested function is unavailable, or there is no appropriate license.

API_ERROR_ERR 

General error in the Engine.

API_GPFAULT_ERR 

General Protection Fault in the Engine.

API_PLATFORM_ERR 

Unsupported operating system.

API_STS_SYNTAX_ERR 

Syntax error in the specified Engine Settings file.

API_STS_ERR 

Invalid setting.

API_HARDLOCK_ERR 

Hardlock not found or hardlock service has not been started.

API_LICENSE_ERR 

Invalid license or Engine Licence file not found.

API_PARAMETER_ERR 

Invalid parameters.

API_BUSY_ERR 

Engine is busy.

API_EVALDATE_EXPIRED_ERR 

Evaluation date of the Engine has expired.

API_TIMEOUT_ERR 

Recognition process soft TimeOut.

API_FILEFORMAT_ERR 

Format error in the actual file.

API_INVALIDSESSION_ERR 

Current session is invalid.

NOT_IMPL_ERR 

Non-implemented feature.

API_DOTNET30_OR_LATER_MISSING_ERR 

Missing .NET 3.0 or later.

API_CRYPT_MISS_WARN 

Crypt module missing.

API_HARDTIMEOUT_ERR 

Recognition process hard TimeOut.

API_DOTNET40_OR_LATER_MISSING_ERR 

Missing .NET 4.0 or later.

API_LICENSEMGR_ERR 

License Manager error.

API_LICENSEVALIDATION_WARN 

License cannot be validated.

API_LANGUAGE_SET_ERR 

Unlicensed language setting found or it is not supported by the current CSDK configuration.

API_ERRORS_HAPPENED_WARN 

Non-fatal error happened during ProcessPages.

API_WARNINGS_HAPPENED_WARN 

Warnings happened during ProcessPages.

API_LICENSE_PAGECOUNT_ERR 

Page count limit reached or expired.

API_LICENSEMGR_PROTOCOL_ERR 

Connection actively closed by License Manager Service.

RSD_WARN 

General RSD warning.

RSD_INTERNAL 

Internal error.

RSD_FAIL 

General RSD failure.

RSD_NA 

Feature not available.

RSD_ACCESS 

Access violation.

RSD_CORRUPTED 

Internal data structures corrupted.

RSD_NOMEMORY 

No memory available.

RSD_MEMORYFAIL 

Failed to lock or free memory.

RSD_NOFILE 

File not found.

RSD_CREATEFAIL 

File creation error.

RSD_OPENFAIL 

File open error.

RSD_READONLY 

Read-only file attribute.

RSD_READFAIL 

File read error.

RSD_WRITEFAIL 

File write error.

RSD_CLOSEFAIL 

File close error.

RSD_FILECORRUPTED 

File structure corrupted.

RSD_NOMSGFILE 

Message text file not found.

RSD_NOMESSAGE 

Message not found.

RSD_DLL_NOFILE 

DLL not found.

RSD_DLL_FORMAT 

Invalid DLL format.

RSD_DLL_GETPROC 

Cannot find function in DLL.

RSD_NOTOPENED 

Scanner driver not opened.

RSD_NOTLOADED 

Scanner driver not loaded.

RSD_NODRIVER 

Scanner driver not found.

RSD_BADVERSION 

Invalid scanner driver version.

RSD_DRIVERFAIL 

Scanner driver error.

RSD_NOCARD 

Scanner interface card not found.

RSD_BADHANDLE 

Invalid spec ID.

RSD_PARAMID 

Invalid parameter ID specified.

RSD_PARAMVALUE 

Invalid parameter value specified.

RSD_BADADFCOMMAND 

Invalid ADF command.

RSD_WARNSTARTMODE 

Scan start mode setting not synchronized.

RSD_BADSTARTMODE 

Invalid scan start mode setting.

RSD_BADTRANSFER 

Invalid scan image transfer mode setting.

RSD_WARNPAPERSOURCE 

Scan paper source setting not synchronized.

RSD_BADPAPERSOURCE 

Invalid scan paper source setting.

RSD_WARNRESOLUTION 

Scan resolution setting not synchronized.

RSD_BADRESOLUTION 

Invalid scan resolution setting.

RSD_WARNMARGIN 

Scan margin setting not synchronized.

RSD_BADMARGIN 

Invalid scan margin setting.

RSD_WARNPAPERSIZE 

Scan paper size setting not synchronized.

RSD_BADPAPERSIZE 

Invalid scan paper size setting.

RSD_WARNORIENTATION 

Scan orientation setting not synchronized.

RSD_BADORIENTATION 

Invalid scan orientation setting.

RSD_WARNDUPLEX 

Duplex scan setting not synchronized.

RSD_BADDUPLEX 

Invalid duplex scan setting.

RSD_WARNIMAGEINTERP 

Bits per sample setting not synchronized.

RSD_BADIMAGEINTERP 

Invalid bits per sample setting.

RSD_BADCOLORINTERP 

Invalid color interpretation setting.

RSD_BADHALFTONE 

Invalid halftone setting.

RSD_WARNBRIGHTNESS 

Scan brightness setting not synchronized.

RSD_BADBRIGHTNESS 

Invalid scan brightness setting.

RSD_WARNCONTRAST 

Scan contrast setting not synchronized.

RSD_BADCONTRAST 

Invalid scan contrast setting.

RSD_BADMIDTONE 

Invalid scan midtone setting.

RSD_WARNLAMPCOLOR 

Scan dropout color setting not synchronized.

RSD_BADLAMPCOLOR 

Invalid scan dropout color setting.

RSD_BADCOMPRESSION 

Invalid compression setting.

RSD_BADFILETYPE 

Invalid image file type setting.

RSD_BADINDICATION 

Invalid scan indication setting.

RSD_CONFIGURATIONID 

Invalid configuration ID setting.

RSD_HOSTID 

Invalid host ID setting.

RSD_SCSIID 

Invalid SCSI ID setting.

RSD_BADPARAMCOMBO 

Invalid parameter combination.

RSD_LINE_TOO_WIDE 

Line too wide to handle.

RSD_NOIMAGE 

Image does not exist.

RSD_BADIMAGEWIDTH 

Image width too small or too large.

RSD_BADIMAGELENGTH 

Image length too small or too large.

RSD_NOAUTOROTATE 

Image too large for autorotate.

RSD_TRUNCATED 

User buffer too small.

RSD_NOTCAPABLE 

Scanner does not support this feature.

RSD_NOTCONNECTED 

Scanner not connected.

RSD_NOTREADY 

Scanner not ready.

RSD_NOPAPER 

Scanner ADF empty.

RSD_PAPERJAM 

Scanner ADF paper jam.

RSD_DOUBLEFEED 

Scanner ADF double feed.

RSD_COVEROPEN 

Scanner ADF cover open.

RSD_BOTHFEEDERSLOADED 

Both feeders are loaded.

RSD_RESERVED 

Scanner already reserved.

RSD_NOTRESERVED 

Scanner not reserved.

RSD_SCANNERBUSY 

Scanner busy.

RSD_SCANNERSTOP 

Stop button pushed on scanner.

RSD_SCANNERFAIL 

Unspecified scanner error.

RSD_TIMEOUT 

Timeout (RSD module or the scanner).

RSD_USER_CANCELLED 

User cancelled operation.

RSD_ABORTED 

Operation/action aborted.

RSD_NOTPOSSIBLE 

Operation not possible.

RSD_PAPERPICK 

The ADF cannot pick up the paper.

IMF_READ_ERR 

Image file read error.

IMF_WRITE_ERR 

Image file write error.

IMF_INIT_ERR 

Image file I/O module initialization error.

IMF_OPEN_ERR 

Image file open error.

IMF_CLOSE_ERR 

Image file close error.

IMF_CREATE_ERR 

Image file create error.

IMF_MEMORY_ERR 

Out of memory during image file I/O.

IMF_NOTSUP_ERR 

Not supported image file format or image file type.

IMF_TAGMISSING_ERR 

Required TIFF basic tag is missing.

IMF_COMP_ERR 

Error in image compression.

IMF_IMGFORM_ERR 

Unknown image format.

IMF_PAGENUM_ERR 

Non-existent page number.

IMF_FILEFORMAT_ERR 

File format error.

IMF_COLOR_ERR 

Color PCX file is not supported.

IMF_TMPFILE_ERR 

Temporary file handling error.

IMF_APPEND_ERR 

Appending not allowed.

IMF_FILENOTEMPTY_ERR 

Writing into a non-empty file without IMF append mode specified.

IMF_FAXVIEWMISS_ERR 

Microsoft Fax viewer missing or not installed.

IMF_PASSWORD_WARN 

Password protected file.

IMF_EMPTYHANDLE_WARN 

The file belonging to this handle does not exist any longer.

IMF_PDFAPPENDONLY_ERR 

In case of PDF saving the append flag must be true.

IMF_READ_WARN 

Image file read problem.

IMF_COMP_WARN 

Problem in image compression.

IMF_PASSWORD_SYNTAX_WARN 

Illegal password.

IMF_PASSWORD_ERR 

Wrong password.

IMF_CRYPT_NOTSUP_ERR 

Not supported encryption.

IMF_FONT_MISSING_WARN 

No font for rendering a glyph.

IMF_PDFCHANGEDXREF_WARN 

The pdf version is changed because the file size is over 10 GB.

IMF_FONT_MISSING_ERR 

No font for rendering the image.

IMG_SETTING_ERR 

Internal use only.

IMG_NOTENOUGHMEMORY_ERR 

Not enough memory during image processing.

IMG_RECT_ERR 

Invalid rectangle dimensions.

IMG_DPI_ERR 

Non-supported resolution.

IMG_NOTFOUND_ERR 

Image not found.

IMG_COMPRESSED_ERR 

Cannot process compressed image.

IMG_BITMAPADDRESS_ERR 

Invalid bitmap address.

IMG_BITSPERPIXEL_ERR 

Unsupported BitsPerPixel value.

IMG_NOTATTACHED_ERR 

Internal use only.

IMG_HANDLE_ERR 

Invalid image handle.

IMG_BUFFEROVERFLOW_ERR 

Buffer overflow during processing the image.

IMG_ACCESS_ERR 

Image operation denied.

IMG_NOMORE_WARN 

No more lines in defined image area.

IMG_SIZE_ERR 

Non-supported image size.

IMG_INVALIDOP_ERR 

Operation not supported on this image.

IMG_ZONE_ERR 

Invalid zone operation (e.g. existing user zone at LZ_FORM).

IMG_DPI_WARN 

Non-supported resolution.

IMG_ANCHOR_WARN 

One or more anchor zones were not found.

IMG_ANCHORNOTFOUND_ERR 

Too few anchors were found or none.

IMG_NOTEXTZONE_WARN 

No text zone in the template.

IMG_ANCHORNOTEXIST_ERR 

Neither positional nor reference anchor has been defined.

IMG_TEMPLATENOTMATCHED_ERR 

None of the templates were matched.

IMG_ANCHOR_CONTENT_ERR 

Not supported anchor content.

IMG_ANCHORMOREFOUND_WARN 

More than one anchor were found in the drift area.

IMG_TRANSFORM_ERR 

Zone transformation failed (zone is out of the image).

IMG_MATCHING_LOW_CONFIDENCE 

The matched template has low confidence.

IMG_ANCHOR_CHECKNOTFOUND_ERR 

The text in check anchor does not match.

IMG_ANCHOR_REFERENCENOTFOUND_ERR 

Reference anchor was not found.

IMG_ANCHOR_MOREREFERENCE_ERR 

The position of the reference anchor is ambiguous (there is similar text near the anchor).

IMG_ANCHOR_SELECTORNOTFOUND_ERR 

Selector anchor not found.

IMG_ANCHOR_RECOGNITION_ERR 

Could not recognize text or barcode in the given area.

IMG_ANCHOR_SKIP_WARN 

The anchor is skipped because template does not match.

IMG_ANCHOR_VALUE_WARN 

Anchor text is too short.

IMG_ANCHOR_ZONEISNOTANCHORED_WARN 

Zone is not anchored to either reference anchor or to positional anchor.

IMG_ANCHOR_TOOFEWANCHORS_WARN 

There are too few positional anchors (suggested: 4 - 6 anchors).

IMG_ANCHOR_TOOMANYANCHORS_WARN 

There are too many positional anchors (suggested: 4 - 6 anchors).

IMG_ANCHOR_POSITION_WARN 

The position of the anchors is suboptimal (define anchors near each corner of the page).

IMG_ANCHOR_SIMILARTEXT_WARN 

The anchor is ambigous: there is similar text near the anchor.

IMG_ANCHOR_NOTREFERENCED_WARN 

No zone is anchored to this reference anchor.

IMG_ANCHOR_CHECKDRIFTTOOLARGE_WARN 

The drift of the check anchor is too large (suggested: approx. DPI/30 pixel).

IMG_ANCHOR_DRIFTNOTCONSISTENT_WARN 

The drifts of some positional anchors are infinite, while those of others aren't. (Suggestion: either all of them or none of them should be infinite.

IMG_ANCHOR_CHECKANCHORSKIPPED_WARN 

The checkanchor(s) is/are skipped because there is no positional anchor.

IMG_TEMPLATEFAILED_WARN 

None of the templates were matched.

DC_INVALIDNAME_ERR 

Cannot create class: invalid name.

DC_EXISTINGNAME_ERR 

Cannot create class: existing name.

DC_EXISTINGFOLDER_ERR 

Cannot create class: existing folder.

DC_HANDLE_ERR 

Invalid handle.

DC_EMPTYCLASS_ERR 

Class is empty.

DC_NOTSAVED_ERR 

Project is not saved.

DC_NOTTRAINED_ERR 

Project is not trained.

DC_NOSUCHATTRIBUTE_ERR 

No such attribute.

DC_UNKNOWNEXTENSION_ERR 

Can not open this file: unknown extension.

DC_NOSUCHCLASS_ERR 

No such class.

DC_NOTEXT_ERR 

Document does not contain enough words to distinguish classes.

DC_ONECLASS_ERR 

There is only one class in the training set.

DC_TOOFEWDOCUMENT_WARN 

There are not enough documents in the class.

DC_NOTENOUGHINFO_WARN 

Document does not contain enough info to distinguish classes.

DC_INCOMPATIBLEDOCTYPE_ERR 

Layout based classifiers can not process text documents.

DC_SYNTAX_ERR 

Parameter syntax error.

DC_NOCLASS_ERR 

There is no class in the training set.

PAGE_NOTFOUND_ERR 

Invalid page handle (NULL).

PAGE_HANDLE_ERR 

Invalid page handle.

PAGE_NOT_IN_PAGESTORE_ERR 

Page is not in PageStore.

MGR_ERR 

Engine manager module error.

NO_TXT_WARN 

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

OCR_NO_MODULE_WARN 

No selected recognition module.

ZONE_NOTFOUND_ERR 

No zone in the zone list.

ZONE_NOTFOUND_WARN 

No zones found.

ZONE_POSITION_ERR 

Invalid zone index.

ZONE_EXISTING_SEQ_ERR 

Internal use only.

ZONE_FILE_ERR 

Internal use only.

ZONE_SIZE_ERR 

Invalid zone coordinates.

ZONE_SHAPE_ERR 

Invalid zone shape (not rectangular).

ZONE_IMAGE_DOWNSAMPLED_WARN 

Color image was downsampled.

ZONE_SIZE_WARN 

Invalid zone coordinates.

ZONE_NO_FIELDNAME_WARN 

Zone can not have a field name defined.

EXTRACTED_TXT_WARN 

Limited information extacted from input document.

LANGDET_INHERITED_WARN 

The language was inherited from previous page.

ZONE_OUTOFTHEIMAGE_ERR 

Zone is out of the image.

API_MTX_INTERNAL_ERR 

MTX engine fatal internal error.

MOR_INIT_ERR 

MOR recognition module initialization error.

MOR_DOS_ERR 

DOS error during recognition.

MOR_BCTNOTFOUND_ERR 

Knowledge base file for MOR recognition module not found (RECOGN.BCT).

MOR_BCTCORRUPTED_ERR 

Knowledge base file for MOR recognition module corrupted (RECOGN.BCT).

MOR_BCTVERSION_ERR 

Incorrect knowledge base file version (RECOGN.BCT).

MOR_TOOLARGE_ERR 

Image size too large.

MOR_FILECORRUPTED_ERR 

File corrupted.

MOR_INTERNAL_ERR 

Internal error in the MOR recognition module.

MOR_GPFAULT_ERR 

General Protection Fault in the MOR recognition module.

BAR_ERR 

Barcode module error.

BAR_NOT_ENOUGH_MEMORY_ERR 

Not enough memory for barcode recognition.

BAR_NO_CODE_ERR 

No barcode found in the zone.

BAR_INVALID_CODE_ERR 

Non-supported barcode type found.

BAR_NOT_DEFINIT_ERR 

Inconsistent type setting.

BAR_INCOMPATIBLE_TYPE_ERR 

Mutually exclusive type setting.

BAR_DEPRECATED_TYPE_ERR 

Deprecated type setting.

BAR_TYPE_WARN 

Barcode type incompatibility detected at kRecRecognize().

BAR_UNCOMBINABLE_TYPE_ERR 

Code cannot be selected in combination with other symbologies.

BAR_NOTSUPPORTED_TYPE_ERR 

Not supported barcode type by actual bar recognition module.

BAR_FAMILY_FORCED_WARN 

Force family barcode type if the recognized type is not fit to the enabled type.

BAR_TOOLARGE_ERR 

Box is too small for the barcode.

BAR_NOTSUPPORTED_CHAR_WARN 

Character code is not supported by the actual barcode type.

DOT_ERR 

Dot-matrix recognition error.

OMR_ERR 

Checkmark recognition error.

HNR_TBSCORRUPTED_ERR 

Knowledge base file for HNR module corrupted.

HNR_SYNTAX_WARN 

Parameter is out of valid range.

RER_INTERNAL_ERR 

RER module internal error.

RER_NOKNOWLEDGEFILE_ERR 

Knowledge base file for RER module not found (*.REC).

RER_NOCHARSET_SET_ERR 

Character Set is empty for the RER module.

RER_NOTSUPPORTED_CHARSET_ERR 

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

RER_SPECFILE_NOTFOUND_ERR 

RER specfile not found.

SPL_MEMORY_ERR 

Not enough memory for the SPL module.

SPL_NOINIT_ERR 

Uninitialized spell object.

SPL_FOPEN_ERR 

Spell file open error.

SPL_FREAD_ERR 

Spell file read error.

SPL_FWRITE_ERR 

User dictionary write error.

SPL_BADFILEFORMAT_ERR 

Invalid file format (TEV.SZO).

SPL_INIT_ERR 

Module initialization error.

SPL_CLOSE_ERR 

User dictionary close error.

SPL_LANG_ERR 

Illegal language setting.

SPL_HANDLE_ERR 

Internal spell function call with a wrong handle.

SPL_NOMORE_WARN 

No more suggestions/items available.

SPL_INTERNAL_ERR 

Internal checking error.

SPL_DUPWORD_ERR 

Item already exists in the User dictionary.

SPL_NOTFOUND_ERR 

Item does not exist in the User dictionary.

SPL_BADWORD_ERR 

Item is incorrect (NULL pointer, empty word).

SPL_UDSECT_ERR 

Deprecated.

SPL_REGEXP_SYNTAX_ERR 

Regexp: other syntax error.

SPL_EXISTSECT_WARN 

Deprecated.

SPL_REGEXP_NOMATCH_ERR 

Regexp: item does not match.

SPL_REGEXP_NOMATCH_WARN 

Regexp: item does not match.

SPL_REGEXP_EXCLUSIVE_ERR 

Regexp: exclusive predefined set within set definition.

SPL_REGEXP_WRONGRANGE_ERR 

Regexp: a range in a set is not correct, e.g.: [z-a].

SPL_REGEXP_SETINRANGE_ERR 

Regexp: a range with a predefined set, e.g.: [\w-z].

SPL_REGEXP_INVALIDCHR_ERR 

Regexp: not handled Unicode character.

SPL_REGEXP_UNBALANCED1_ERR 

Regexp: unbalanced '(' or ')'.

SPL_REGEXP_UNBALANCED2_ERR 

Regexp: unbalanced '['.

SPL_REGEXP_UNBALANCED3_ERR 

Regexp: unbalanced '{'.

SPL_REGEXP_WRONGNUMBER_ERR 

Regexp: number(s) expected within {} pair.

SPL_REGEXP_WRONGUPPER_ERR 

Regexp: invalid upper limit in {n,m} multiplicator.

SPL_REGEXP_ESCAPE_ERR 

Regexp: illegal use of escape ('\') character.

SPL_REGEXP_HEXA_ERR 

Regexp: illegal hexadecimal spec..

SPL_REGEXP_MULTIPLICATOR_ERR 

Regexp: illegal use of *, +, ? or {}.

SPL_REGEXP_ZERO_WIDTH_ERR 

Regexp: '?', '*', '+' or '{}' follows an empty atom.

SPL_REGEXP_UNEXPECTED_ERR 

Regexp: unexpected character found (missing escape?).

APIP_INIT_ERR 

APIPlus initialization error.

APIP_PARAM_ERR 

Parameter error.

APIP_NOMORE_WARN 

No more items available.

APIP_INTERNAL_ERR 

Internal error in RecAPIPlus.

L_WARNINGS 

General OmniPage Document (OPD) Warning.

L_WARNING_NOTFOUND 

Layout Analyser Object not found.

L_WARNING_NOTOPENED 

Layout Analyser Object not opened.

L_WARNING_MISSING 

Missing data.

L_WARNING_SUBSTITUTED 

Data substitution.

L_ERRORS 

General OmniPage Document (OPD) Error.

L_ERROR_NOID 

No such Object ID.

L_ERROR_OBJID 

Wrong Object ID.

L_ERROR_OBJTYPE 

Wrong object type.

L_ERROR_FILE 

General file operation error.

L_ERROR_FILE_OPEN 

File cannot be opened.

L_ERROR_FILE_CLOSE 

File cannot be closed.

L_ERROR_FILE_SEEK 

File seeking error.

L_ERROR_FILE_READ 

File reading error.

L_ERROR_FILE_WRITE 

File writing error.

L_ERROR_FILE_FORMAT 

Wrong file format.

L_ERROR_PARAMETER 

Invalid internal parameter.

L_ERROR_RANGE 

Invalid internal range.

L_ERROR_CALL 

Invalid function call.

L_ERROR_CONVERTER 

Conversion error.

L_ERROR_BADVERSION 

Wrong Layout Analyser version.

L_ERROR_IMAGE 

Image operation error.

L_ERROR_DTK 

DTK function error.

L_ERROR_READONLY 

Layout Analyser opened as read only.

L_ERROR_OUTPUT_MODE 

Invalid output mode.

L_ERROR_APPSET 

Invalid appset.

L_ERROR_PRERENDERING 

Prerendering error.

L_ERROR_NOACCESS 

Access error.

L_ERROR_NOTIMPLEMENTED 

Feature not implemented.

L_ERROR_MASTERSOFT 

Text converter filter error.

L_ERROR_ABORTED 

The function was aborted.

L_ERROR_CONV_NODOCUMENT 

No document in Layout Analyser Storage.

L_ERROR_CONV_LECSO 

Layout Analyser command error.

L_ERROR_TOO_MANY_SHEETS 

Too many Excel sheets.

L_ERROR_DOCFORMATTER 

Internal use only.

L_ERROR_STOP 

Internal use only.

L_ERROR_VOCALIZER 

Error in Vocalizer Engine.

L_ERROR_NO_VOCALIZER_VOICE 

No voice available in Vocalizer Engine.

L_ERROR_REALSPEAK 

Error in RealSpeak Solo Engine.

L_ERROR_NO_REALSPEAK_VOICE 

No voice available in RealSpeak Engine.

L_ERROR_CODEC 

Error in using Codec.

L_FATALERRORS 

General OmniPage Document (OPD) Fatal error.

L_FERROR_MEMORY 

OmniPage Document (OPD) memory problem.

L_FERROR_INTERNAL 

Internal OmniPage Document (OPD) error.

L_FERROR_FILEFORMAT 

Wrong file format or wrong reading or writing methods.

L_FERROR_INDEX 

Wrong index stream.

L_FERROR_RECAPI 

Error in RecApi.

L_FERROR_NOSET 

Some attribute was not set.

L_FERROR_PERMISSION 

PDF modification restricted.

L_FERROR_MISSING 

Missing file (usually a DLL).

BRA_INIT_ERR 

Module is no longer supported.

MAT_INIT_ERR 

Matrix matching recognition module initialization error.

RESERVED_P_INIT_ERR 

Unused recognition module.

MTX_INIT_ERR 

MTX recognition module initialization error.

FRX_INIT_ERR 

FRX recognition module initialization error.

ASN_INIT_ERR 

Asian recognition module initialization error.

MNG_INIT_ERR 

MNG recognition module initialization error.

STSMN_HANDLE_ERR 

StsMan invalid node handle error.

STSMN_NOSETTING_ERR 

No settings in node.

STSMN_BADTYPE_ERR 

Improper setting type.

STSMN_OPNOTALLOWED_ERR 

Operation not allowed for setting or node.

STSMN_PARAMETER_ERR 

Invalid parameter.

STSMN_INVALIDFILE_ERR 

Settings file content invalid.

STSMN_NOTFOUND_ERR 

Node not found.

STSMN_FULLSAVEDTREE_WARN 

The loaded settings file may contain default values.

STSMN_BADORMISSINGREF_ERR 

The reference of a symbolic link subtree is invalid or the referenced setting does not exist yet.

STSMN_EMPTYPENDVAL_WARN 

Pending setting has no value in the current Settings Collection.

STSMN_NOSESSION_ERR 

Storage of settings collections does not exist or too many settings collections are created.

IPRO_E_NOTALLOWED 

Operation not allowed.

IPRO_E_TOOMANYENGINE 

Only one Engine object can be created.

IPRO_E_ENGINEINITFAILED 

Engine not initialized.

IPRO_E_IMAGEFILESINITFAILED 

ImageFiles collection cannot be created.

IPRO_E_MEMORYBITMAPSINITFAILED 

MemoryBitmaps collection cannot be created.

IPRO_E_UDMANAGERINITFAILED 

UDManager object cannot be created.

IPRO_E_BARCODETYPESINITFAILED 

BarcodeTypes collection cannot be created.

IPRO_E_MODULEINFOSINITFAILED 

ModuleInfos collection cannot be created.

IPRO_E_UILANGUAGESINITFAILED 

UILanguages collection cannot be created.

IPRO_E_SPELLLANGUAGESINITFAILED 

SpellLanguages collection cannot be created.

IPRO_E_DOCUMENTSINITFAILED 

Documents collection cannot be created.

IPRO_E_SCANNERSINITFAILED 

Scanners collection cannot be created.

IPRO_E_SCANNERINITFAILED 

Scanner not initialized.

IPRO_E_CONVERTERSINITFAILED 

Converters collection cannot be created.

IPRO_E_SETTINGMANAGERINITFAILED 

SettingManager object cannot be created.

IPRO_E_OBJECTISINVALID 

Invalid object: cannot be used.

IPRO_E_CONVERTERMANAGERUNKNOWN 

ConverterManager not found.

IPRO_E_CONVERTERNOTFOUND 

Converter not found.

IPRO_W_ZONEINVALID 

Some zones have incorrect attributes.

DOCUMENT_INVALID_ERR 

Corrupt document.

DOCUMENT_ACCESS_ERR 

Document access error.

DOCUMENT_RDONLY_SAVE_ERR 

Document is read-only.

DOCUMENT_CONVERT_ERR 

Document conversion error.

DOCUMENT_SHAREVIOLATION_ERR 

Sharing violation.

DOCUMENT_NOTEXIST_ERR 

Document does not exist.

DOCUMENTMGR_NOTINIT_ERR 

Document Manager is not initialized.

DOCUMENT_CANCEL 

Document operation cancelled.

DOCUMENT_VERSION_ERR 

Document version error.

DOCUMENT_ZOP_ERR 

Zone operation error.

DOCUMENT_ZOP_NOTFOUND_ERR 

Zone not found.

DOCUMENT_ZOP_BADSHAPE_ERR 

Zone has invalid shape.

DOCUMENT_ZOP_NEEDOCR_ERR 

OCR needed.

WORKFLOW_START_ERR 

The starting of the active workflow has failed.

WORKFLOW_PROCESSED_ERR 

The workflow is already processed.

WORKFLOW_INTERACTIVE_ERR 

The workflow step is not in interactive mode.

WORKFLOW_INPUT_ERR 

The workflow doesn't need any input file.

WORKFLOW_OUTPUT_ERR 

The workflow doesn't need any output file.

WORKFLOW_CREATION_ERR 

Workflow creation error.

WORKFLOW_INACTIVE_ERR 

The workflow is inactive but the method needs an active one.

WORKFLOW_ACTIVE_ERR 

The workflow is active but the method needs an inactive one.

WORKFLOW_INVALID_ERR 

The workflow definition is invalid or doesn't exist.

WORKFLOW_DOCUMENT_ERR 

The workflow definition doesn't belong to document.

WORKFLOW_ITEMNOTFOUND_ERR 

Item not found.

WORKFLOW_PARAMNOTFOUND_ERR 

Parameter not found.

WORKFLOW_PARAMEXISTS_ERR 

Parameter already exists.

WORKFLOW_RECCHARS_INF 

Number of recognized characters: %s.

WORKFLOW_RECWORDS_INF 

Number of recognized words: %s.

WORKFLOW_RECREJCHARS_INF 

Number of rejected characters: %s.

WORKFLOW_LDFAXCORR_INF 

Fax correction: %s.

WORKFLOW_LDROT_INF 

Rotation: %s.

WORKFLOW_LDSKEW_WARN 

Large image skew.

WORKFLOW_BARCODE_INF 

An incoming barcode cover page was detected and the associated workflow was found.

WORKFLOW_BARCODE_ERR 

An incoming barcode cover page was detected, but its associated workflow was not found.

WORKFLOW_LDPATTERN_WARN 

There are no files with a name that matches the specified pattern.

WORKFLOW_HWND_ERR 

Parent window is not defined.

WORKFLOW_HWNDCREATE_ERR 

Failed to create window.

WORKFLOW_HWND_WARN 

Parent window is not defined.

WORKFLOW_RECLANGCONF_WARN 

Language conflict detected.

WORKFLOW_ZNMANUAL_INF 

Image was zoned manually.

WORKFLOW_ZNTEMPLATE_INF 

Image was template zoned: '%s'.

WORKFLOW_IPNOTOOL_ERR 

Enhancement template contains unknown tool.

WORKFLOW_IPLOAD_ERR 

Error loading enhancement template file.

WORKFLOW_IPTEMPLATE_INF 

Image was enhanced with '%s'.

WORKFLOW_IPMANUAL_INF 

Image was enhanced manually.

WORKFLOW_IPMANUAL_WARN 

User performed no manual image enhancement.

WORKFLOW_EDBLANK_WARN 

Page is blank, not saved.

WORKFLOW_EDCONVERT_WARN 

Conversion of one or more images was skipped.

WORKFLOW_EDNOFILE_WARN 

Output file was not generated.

WORKFLOW_DEPAGERANGE_ERR 

Invalid page range.

WORKFLOW_DETEMPLATE_ERR 

Invalid form template file.

WORKFLOW_LDPDFCREATE_ERR 

Communication error with the PDF printer driver.

WORKFLOW_GOOGLEDOCS_FILETYPE_ERR 

Cannot save this file type to GoogleDocs.

WORKFLOW_EVERNOTE_FILETYPE_ERR 

Cannot save this file type to Evernote.

WORKFLOW_LDBLANKPAGE_WARN 

Blank page was detected and skipped.

WORKFLOW_INTERACTIONSUPRESSED_WARN 

User interaction was suppressed.

WORKFLOW_CANCEL_WARN 

User canceled the operation.

WORKFLOW_PAGECLASS_WARN 

Page could not be classified.

WORKFLOW_PAGECLASS_INF 

Page was classified: %s.

LINK_MORESPACE_ERR 

Need a bigger buffer.

LINK_CANCEL_WARN 

User canceled the operation.

LINK_NOTAUTHORIZED_ERR 

Not authorized to access the server.

LINK_NOTFOUND_ERR 

Couldn't find the path.

LINK_FILEEXISTS_ERR 

The specified file already exists on the server.

LINK_EVERNOTE_BAD_DATA_FORMAT 

The format of the request data was incorrect.

LINK_EVERNOTE_PERMISSION_DENIED 

Not permitted to perform action.

LINK_EVERNOTE_DATA_REQUIRED 

A required parameter/field was absent.

LINK_EVERNOTE_LIMIT_REACHED 

Operation denied due to data size limit.

LINK_EVERNOTE_QUOTA_REACHED 

Operation denied due to user storage limit.

LINK_EVERNOTE_INVALID_AUTH 

Username and/or password incorrect.

LINK_EVERNOTE_AUTH_EXPIRED 

Authentication token expired/revoked.

LINK_EVERNOTE_DATA_CONFLICT 

Change denied due to data conflict.

LINK_EVERNOTE_ENML_VALIDATION 

Content of submitted note was malformed.

LINK_EVERNOTE_SHARD_UNAVAILABLE 

Service shard with account data is temporarily down.

LINK_EVERNOTE_TOO_WHATEVER 

Operation denied due to data size limit.

LINK_EVERNOTE_UNSUPPORTED_OPERATION 

Operation denied because it is currently unsupported.

LINK_EVERNOTE_TAKEN_DOWN 

Operation denied because access to the corresponding object is prohibited in response to a take-down notice.

LINK_EVERNOTE_RATE_LIMIT_REACHED 

Operation denied because the calling application has reached the hourly API call limit of the user.

LINK_EVERNOTE_BUSINESS_SECURITY_LOGIN_REQUIRED 

Access to a business account has been denied because the user must complete additional steps in order to comply with business security requirements.

LINK_EVERNOTE_DEVICE_LIMIT_REACHED 

Operation denied because the maximum allowed number of devices of the user has exceeded.

Error code (return code) categories.

The RECERR codes can be grouped into some categories according to their types. These categories can be queried to a specified error code by calling kRecGetErrorInfo.

Enumerator:
RET_OK 

Normal operation (REC_OK)

RET_WARNING 

A warning situation (like NO_TXT_WARN or IMF_PASSWORD_WARN etc.)

RET_MEMORY_ERROR 

A memory allocation releated error (like FILE_MEM_ERR or MEM_INVALIDPOINTER_ERR etc.)

RET_FILE_ERROR 

A file handling error (like FILE_NOTFOUND_ERR or IMF_FILENOTEMPTY_ERR etc.)

RET_SCANNER_ERROR 

A scanner related error (like RSD_PAPERJAM or RSD_COVEROPEN etc.)

RET_IMAGE_ERROR 

An image problem (like IMG_SIZE_ERR or IMF_NOTSUP_ERR etc.)

RET_OCR_ERROR 

A recognition problem (like FRX_INIT_ERR or BAR_INVALID_CODE_ERR etc.)

RET_TEXT_ERROR 

A text conversion error (like L_ERROR_TOO_MANY_SHEETS or L_FERROR_PERMISSION etc.)

RET_OTHER_ERROR 

Uncategorized error (like CHR_LANG_NOTFOUND_ERR or API_PROCESS_ABORTED_ERR etc.)

RET_UNKNOWN 

The return code is unknown.


Function Documentation

RETCODEINFO RECAPIKRN kRecGetErrorInfo ( RECERR  ErrCode,
LPCSTR *  lpErrSym 
)

Getting additional information about an error.

The kRecGetErrorInfo function retrieves some information about an error code.

Parameters:
[in]ErrCodeRECERR error code.
[out]lpErrSymPointer of a variable to store a pointer of an internal string. This string is the symbolic representation of the error code.
Return values:
RETCODEINFOSpecifies an error category (no error is RET_OK, warnings are RET_WARNING, while other values mean different error situations like RET_FILE_ERROR, RET_SCANNER_ERROR, RET_IMAGE_ERROR, etc.).
Note:
The symbolic name of the error is returned in lpErrSym. The symbolic name is "REC_OK" for REC_OK, "FILE_ERR" for FILE_ERR, etc. This string can be used to do localized error message handling as the symbolic name is version independent.
Error code symbols are available in ASCII encoding. Use MultiByteToWideChar to convert to UTF-16 in Windows
The specification of this function in C# is:
 RETCODEINFO kRecGetErrorInfo(RECERR re, out string pErrSym); 
RECERR RECAPIKRN kRecGetErrorUIText ( RECERR  ErrCode,
LONG  ErrExt,
LPCTSTR  lpErrStr,
LPTSTR  lpErrUIText,
int *  pBuffLen 
)

Getting the error text of an error.

The kRecGetErrorUIText function retrieves the error text of an error code in the language specified with kRecSetUILang.

Parameters:
[in]ErrCodeRECERR error code.
[in]ErrExtThe value of the extended error code returned by kRecGetLastError
[in]lpErrStrThe value of the additional textual information returned by kRecGetLastError
[out]lpErrUITextA string buffer to store the error text in current codepage or UTF-16 in Windows or UTF-8 code in Linux and Mac
[in,out]pBuffLenPointer to the length of the string buffer. On entering it contains the length of the buffer, on returning it gets the exact length of the full string with the terminating zero.
Return values:
RECERR
Note:
You can call this function twice: first with lpErrUIText == NULL, second with lpErrUIText of the required length. ErrExt and lpErrStr are those returned by a single call to kRecGetLastError
The specification of this function in C# is:
 RECERR kRecGetErrorUIText(RECERR errCode, int errExt, string errStr, out string errUIText); 
RECERR RECAPIKRN kRecGetLastError ( LONG *  pErrExt,
LPTSTR  pErrStr,
int  buflen 
)

Getting last error.

This function provides additional information on the error returned with the previous RecAPI function. This function should be called immediately after any RecAPI API call when the function returned with a value other than REC_OK. Its return code, an extended error code and a supplementary character string may help to identify the problem.

Parameters:
[out]pErrExtPointer of a variable to store the extended error code. Zero (0) value of extended error means there is no extended error information. This parameter can be NULL.
[out]pErrStrPointer of a string buffer to store the supplementary character string with additional textual information about the error. Its empty string value means there is no such information. This parameter can be NULL.
[in]buflenLength of the string buffer.
Return values:
RECERRThe main error code which is the same as the one returned with the failed function.
Note:
See also the function kRecGetLastErrorEx for getting information about more than one error or warning.
There are typical file-related error situations, e.g. a file cannot be created or found. For these errors the return code of this function contains the error code (e.g. FILE_OPEN_ERR) and the supplementary character string contains the name of the file.
kRecGetErrorInfo can be used for retrieving some additional information about an error.
kRecGetErrorUIText can be used for retrieving the error text of an error code.
The specification of this function in C# is:
    RECERR kRecGetLastError(out int ErrExt, out string ErrStr);
    // or when pErrExt is NULL in C/C++
    RECERR kRecGetLastError(out string ErrStr);
    // or when pErrStr is NULL in C/C++
    RECERR kRecGetLastError(out int ErrExt);
    // or when both are NULL
    RECERR kRecGetLastError();
RECERR RECAPIKRN kRecGetLastErrorEx ( LONG *  pErrExt,
LPTSTR *  ppErrStr,
LPTSTR *  ppErrXml 
)

Getting last error.

This function provides additional information on the error or errors returned by the previous RecAPI function. kRecGetLastErrorEx is an extension of the kRecGetLastError function. The main difference between the two is that this function can return information about several errors or warnings, not only the first one that occurred at the previous function. This function should be called immediately after any RecAPI API call when the function returned with a value other than REC_OK.

Parameters:
[out]pErrExtPointer of a variable to store the extended error code of the first error. Zero (0) value of extended error means there is no extended error information. This parameter can be NULL.
[out]ppErrStrAddress of a pointer to a string which is allocated and filled by this function with additional textual information about the error. The string is an empty string if there is no additional information. This parameter can be NULL.
[out]ppErrXmlAddress of a pointer to a string which is allocated and filled by this function with XML data for all the errors that happened. The string is an empty string if there are no errors. This parameter can be NULL.
Return values:
RECERRThe main error code which is the same as that one returned with the failed function.
Note:
The memory allocated for ppErrStr and ppErrXml must be released using kRecFree.
The return value and the extended error code are for a single error, just as with the kRecGetLastError function. The ppErrStr error string also contains the same information as with the kRecGetLastError function, while the ppErrXml string contains an XML element for each error and warning that happened during the previous function call. This function could be more handy than the kRecGetLastError function even when you do not need the XML string because there is no buffer length problem with this function.
The string returned in ppErrXml contains elements in XML format. Its root element is an <errors> tag containing <error/> and <warning/> tags with information about the error (or warning) in different attributes. The usual attributes are as follows:
  • code="number": number is a hexadecimal string containing the RECERR code
  • sym="string": string is the symbolic representation of the RECERR code (e.g. "FILE_OPEN_ERR")
  • ext="number": number is a hexadecimal string containing the extended error code, if any
  • str="string": string is the supplementary character string with additional textual information about the error or warning, if any
There are additional container elements in case of kRecProcessPages and kRecProcessPagesEx functions. These elements specify the file name and the file page where the error or warning happened. The usual structure is the following:
    <errors>
     <file name="filename">
      <page filepage="number" pagenum="number">
       <error code="number" sym="string"/>
      </page>
     </file>
    </errors>
The 1 based filepage attribute contains the hexadecimal value of the page number of the file, so it is reset to 1 at each file. The 1 based pagenum attribute contains the global page number (also hexadecimal).
When the image source is a scanner at the kRecProcessPages function, then only a page container element is added for each error with a single pagenum attribute.
There are no such container elements at page oriented functions. There are typical file-related error situations, e.g. a file cannot be created or found. For these errors the the 'str' attribute of the error element contains the name of the file.
See kRecGetLastError, kRecGetErrorInfo and kRecGetErrorUIText for additional information.
The specification of this function in C# is:
 RECERR kRecGetLastErrorEx(out string ErrXml); 
Note that there are no ErrExt and ErrStr parameters in C#, the function returns the XML string only! If you need the simpler single-error functionality, use the kRecGetLastError function.
RECKRNDLL LPCSTR RECKRNCALL watch_recerr ( RECERR  ErrCode)

Debugging utility function: Getting a string with the symbolic error code.

The watch_recerr function retrieves the symbolic error code of an error.

Parameters:
[in]ErrCodeRECERR error code.
Return values:
LPCSTRA pointer to the error string.
Note:
This function is designed to be used in a Watch window while debugging an application. Most of the error codes are large negative numbers, less than -32768, and Visual Studio is not able to show their symbolic value when you place the mouse pointer over a RECERR variable. This function does not have any side effects, so it can be safely used in Watch expressions. For example, to see a legible code value of the variable rc put the expression in a Watch window.
In most cases Visual Studio's standard search rules do not find a symbol in a different DLL, therefore we suggest you create a function in your module as follows and use your function in the watch window:
    const char *recerr(RECERR ErrCode)
    {
        return watch_recerr(ErrCode);
    }