BiTiff.ocx specific error codes

The last error code in the BiTiff.ocx can be retrieved by the TiffError method.

The TiffErrorString method can be used to get the error message associated with error code.

 

Please note that each OCX has a different Error code method and Error String method. The error list may be expanded in future releases without notice.

Error Code number

Error Code

Meaning

0

TOK

Operation was successfull.

1

TNOTENOUGHMEMORY

Not enough memory to allocate block.

2

TBADOPENMODE

No T_READ or T_CREAT in OpenTiffFile().

3

TINDEXOUTOFRANGE

Image or tag data index is out of range.

4

TSTRIPOUTOFRANGE

Strip index is out of range.

5

TENDOFDATA

Unexpected end of file in reading data.

6

TFILEIOERROR

General I/O error in reading or writing.

7

TPATHTOOLONG

Pathname is longer than MAXPATH.

8

TNOTTIFFILE

File does not have a valid TIFF format.

9

TBADTAG

Invalid TIFF directory tag.

10

TTOOFEWINFO

Indispensable tags are missing.

11

TUNKNOWNCOMPRESSION

Image compression type is not known.

12

TCOMPRESSIONFAILED

Error during compression or decompression.

13

TNOSUCHTAG

Such tag is not defined.

14

TBADBYTEORDER

Invalid byte order ID in ModiTiffFileInfo().

15

TBADBITORDER

Invalid BITORDER tag value.

16

TBADNUMBEROFCOLORS

Invalid BITSPERPIXEL tag value.

17

TTOFEWCOLORINFO

Color info is not enough.

18

TNOTCALSFILE

File does not have a valid CALS format.

19

TNOEOFB

End of Facsimile Block is missing (EOFB).

20

TBADEOFB

Unexpected End of Facsimile Block (EOFB).

21

TBADWIDTH

Image width must be 1728 pixels (Can’t save it).

22

TNOJPEGDLL

Module JPEG DLL is not found.

23

TBADJPEGDLL

Can’t find a function in module JPEG DLL.

24

TFORMATCLIPBOARD

Clipboard format is not bitmap.

25

TOPENCLIPBOARD

Could not open clipboard.

26

TRECEIVECLIPBOARD

Could not receive bitmap from clipboard.

27

TIMAGENOTREGISTERED

Image is not registered.

28

TNOBIDLGS

BiDlgs.dll does not exist

29

TBADPARAMS

Parameter error

30

TBADDIB

Bad (compressed) DIB

31

TFOUNDEOI

Not PIW Format

32

TBADBPP

Bits per pixel not supported

33

TBADIBUF

Invalid Image Buffer Address

34

TBADHANDLE

Invalid memory pointer or handle

35

TTIFFMOTYPE

Can't append an Intel-type TIF to a Motorola-type TIF

36

TBADDIM

Image format does not support width or length > 65535