Barcode Xpress for .NET Core v13.4 - Updated
Debug Your Application
User Guide > How To > Debug Your Application

Troubleshooting

Event Handling

Barcode Xpress may throw a number of exceptions if it comes across errors or events that need to be handled by the application. These exceptions are tabulated below:

Exception Description
ImageNotAvailableException Thrown whenever there is no image available for an operation that requires one.
InternalErrorException Thrown whenever an unhandled exception is encountered.
InvalidAreaException Thrown whenever an invalid area is used in barcode recognition.
InvalidBitmapException Thrown if an invalid bitmap is detected.
InvalidIndexException Thrown if a request for results is outside the valid range.
InvalidLicenseException Thrown if an invalid license is detected.
InvalidParameterException Thrown if a parameter is invalid.
OutOfMemoryException Thrown if the creation of the bitmap to draw the barcode fails.
ParameterOutOfRangeException Thrown if a parameter is out of range.
StringParseErrorException Thrown if a parse error is encountered in the ReadFromStream method.
TimeoutErrorException This exception is not used.
UnableReadBarcodeTypeException Thrown if an unsupported barcode type is detected.
UnableReadBitmapException Thrown when a bitmap cannot be read, possibly because of an invalid bitmap handle.

Error Codes

Listed below is a cross reference of error codes and their corresponding descriptions.

Error Codes Error Description
9000

OutOfMemoryException

There is not enough memory to continue the operation.
9001

InvalidParameterException

Invalid parameter.
9002

ParameterOutOfRangeException

Parameter out of range.

9003

InvalidBitmapException

Invalid bitmap.

9004

UnableReadbitmapException

Unable to read bitmap.

9006

InvalidIndexException

Invalid index.
9011

InvalidLicenseException

Invalid license.

9012

TimeoutErrorException

Timeout Error.

9013

ImageNotAvailableException

Image not available.

9014

InternalErrorException

Internal error.

9015

InvalidAreaException

Area is outside required range.

9200 StreamParseException An error was encountered while parsing the stream data in the ReadFromStream method.
See Also