DLL Interface

Error Codes

Configuration errors (-1,-2...)

General errors (1-99)

File errors (100-199)

Memory errors (200-299)

Encoding errors (300-399)

Decoding errors (400-499)

Configuration Errors

-1

DELTAMAX_ERR_OPTIONS_REQUIRED

No valid DELTAMAX_ENCODE_OPTIONS or DELTAMAX_DECODE_OPTIONS structure was provided.

-2

DELTAMAX_ERR_INVALID_LICENSE_KEY

Invalid license information - either lpszLicenseKey or lpszLicensedTo are incorrect.

-3

DELTAMAX_ERR_INVALID_MEM_SETTINGS

Invalid memory settings.

-4

DELTAMAX_ERR_INVALID_LOW_MEM_MODE

Invalid low memory mode value.

-5

DELTAMAX_ERR_INVALID_FOOTPRINT_SIZE

Invalid footprint size value.

-6

DELTAMAX_ERR_INVALID_MAX_ADDITIONAL_PASSES

Invalid max additional passes value.

General Errors

0

DELTAMAX_ERR_OK

(No errors - operation completed succesfully.)

1

DELTAMAX_ERR_CANCELLED

The encode or decode operation was cancelled.

File Errors

100

DELTAMAX_ERR_SOURCE_FILE_NOT_FOUND

The specified source file was not found.

101

DELTAMAX_ERR_TARGET_FILE_NOT_FOUND

The specified target file was not found.

102

DELTAMAX_ERR_DIFF_FILE_NOT_FOUND

The specified diff file was not found.

103

DELTAMAX_ERR_UNABLE_TO_OPEN_SOURCE_FILE

The source file could not be opened.

104

DELTAMAX_ERR_UNABLE_TO_OPEN_TARGET_FILE

The target file could not be opened.

105

DELTAMAX_ERR_UNABLE_TO_OPEN_DIFF_FILE

The diff file could not be opened.

106

DELTAMAX_ERR_SOURCE_FILE_TOO_LARGE

The source file is larger than the maximum permitted file size (2 GB).

107

DELTAMAX_ERR_TARGET_FILE_TOO_LARGE

The target file is larger than the maximum permitted file size (2 GB).

108

DELTAMAX_ERR_DIFF_FILE_TOO_LARGE

The diff file is larger than the maximum permitted file size (2 GB).

109

DELTAMAX_ERR_SOURCE_FILE_READ_FAILED

An error occurred while reading the source file.

110

DELTAMAX_ERR_TARGET_FILE_READ_FAILED

An error occurred while reading the target file.

111

DELTAMAX_ERR_DIFF_FILE_READ_FAILED

An error occurred while reading the diff file.

Memory Errors

200

DELTAMAX_ERR_UNABLE_TO_RESERVE_ADDRESS_SPACE

Unable to reserve address space for the operation.

201

DELTAMAX_ERR_UNABLE_TO_FIT_HASH_TABLE

Not enough memory to index the source file. (The footprint size couldn't be made large enough to make the hash table arrays fit into the available address space.)

202

DELTAMAX_ERR_INSUFFICIENT_ADDRESS_SPACE

There isn't enough address space reserved for the operation.

203

DELTAMAX_ERR_UNABLE_TO_ALLOCATE_MEMORY

Unable to allocate memory for the operation.

Encoding Errors

300

DELTAMAX_ERR_UNABLE_TO_CREATE_HASH_TABLE

An error occurred while indexing the source file.

301

DELTAMAX_ERR_UNABLE_TO_WRITE_ADD_CODE

An error occurred while encoding an ADD.

302

DELTAMAX_ERR_UNABLE_TO_WRITE_COPY_CODE

An error occurred while encoding a COPY.

303

DELTAMAX_ERR_UNABLE_TO_RENAME_MULTIPASS_TEMP_FILE

Unable to rename a temporary file used during the multipass optimization.

304

DELTAMAX_ERR_INVALID_CODEWORD_TYPE

Internal encoding error. (Should never occur; may indicate memory corruption?)

Decoding Errors

400

DELTAMAX_ERR_UNABLE_TO_READ_DIFF_HEADER

Unable to read the diff file header.

401

DELTAMAX_ERR_INCOMPATIBLE_DIFF_HEADER

The diff file header is not compatible with this version of DeltaMAX.

402

DELTAMAX_ERR_INVALID_DECODE_ACTION

Internal decoding error. (Should never occur; may indicate memory corruption?)

403

DELTAMAX_ERR_INVALID_CODEWORD_FIRST_BYTE

Invalid encoding detected. (Could indicate the diff is corrupt.)

404

DELTAMAX_ERR_INVALID_CODEWORD

Invalid encoding detected. (Could indicate the diff is corrupt.)

405

DELTAMAX_ERR_ADD_FAILED

An error occurred while decoding an ADD.

406

DELTAMAX_ERR_COPY_FAILED

An error occurred while decoding a COPY.

407

DELTAMAX_ERR_END_CODE_BEFORE_EOF

The "end of data" encoding was encountered before the end of the file was reached.

408

DELTAMAX_ERR_FILE_SIZE_DOES_NOT_MATCH

The size of the decoded data does not match the size reported in the diff file header.

409

DELTAMAX_ERR_UNABLE_TO_CREATE_EMPTY_TARGET_FILE

An error occurred while trying to recreate a zero-byte file.

See Also: Message Codes, DeltaMAXEncode, DeltaMAXDecode