Error Codes
To generate a debug log file, set Debug to true. The log file is kept at the location specified by DebugLogFile. Set the ErrorLevel to Development or Detailed to indicate the level of detail logged.
Error Codes
This section covers ScanFix® Xpress Error Codes, their descriptions and possible causes.
Error Codes | Description | Cause |
0 | Ok | No error. |
14000 | Null Argument | Error message occurs when a parameter is set to null. The error message indicates the name of the null parameter. |
14001 | Argument Out of Range | This error message occurs when a parameter is outside the acceptable range. The error message indicates the name of the parameter that was out of range. |
14002 | Invalid Operation | This error message occurs when an invalid operation is attempted. The message indicates the name of the operation. |
14003 | Invalid Enumeration Argument | This error message occurs when an enumeration is set to an invalid value. The message indicates the name of the enumeration. |
14004 | Out of Memory | This error message occurs when the system does not have enough memory to perform the requested operation. |
14005 | Internal | Internal error during ScanFix object initialization. |
14100 | Unsupported Image | This error message occurs when trying to process an image that is unsupported. |
14150 | Parameter Mismatch |
This error occurs during a call to GetRectangle if the height and width are not greater than zero or padding is attempted when not allowed. It may be followed by one of these error strings: "Width and height must both be greater than zero, re-check parameters." "Padding not permitted, re-check parameters." |
14151 | Parameter Mismatch |
This error occurs during a call to Dilate or Erode if the Direction and OnlyDiagonal properties are set to conflicting values. If OnlyDiagonal is set to true, Direction must be set to exactly two adjacent directions. It may be followed by this error string: "Options.direction indicates an invalid direction for diagonal only operation." |
14200 | Handle Error |
This error occurs during a call to any of the enhancement methods if the image handle is in use. It may be followed by this message: "Image is locked and cannot be modified." |
14201 | Handle Error |
This error occurs during the DIB conversion process and may be followed by this message: "Could not retrieve data from handle." |
14300 | Internal Error |
This is an internal error and may be followed by this message: "Failure loading ScanFix Xpress operation code." |
14301 | InternaParameter Mismatch Error |
This is an internal error and may be followed by a message such as: "... internal initialization exception." "... internal execution exception." "... internal termination exception." |
14400 | Image Bit Count not supported Error |
This is an internal error and may be followed by a message such as: "This function does not support the bit count of the current image." |
14500 | Licensing Error |
This error will occur when attempting to perform a function that is not allowed under the current license and may be followed by this message: "The component is not licensed to perform this function." |
14550 | Read from Stream Error |
This error will occur when attempting to read from a stream and that stream is not formatted properly. This message will display: "An error occurred while reading the stream input in...." |
14551 | Write to Stream Error |
This error will occur when attempting to write to a stream. This message will display: "An error occurred while writing the stream output in...." |
14898 | Miscellaneous Error |
This is a miscellaneous error that can occur and may be followed by a message such as: "An unexpected error occurred in ..." "Provided handle was not an HBITMAP." "Unable to get object information." "Could not create context for converting to HBITMAP." |
14900 | Application-level Error | This is an operating system error that can occur when accessing Microsoft objects. |