Error Code number
|
Error Code
|
Meaning
|
0
|
TGA_ERROR_OK
|
No error detected.
|
1
|
TGA_ERROR_GALLOC
|
Error during global alloc.
|
2
|
TGA_ERROR_GLOCK
|
Error during global lock.
|
3
|
TGA_ERROR_LALLOC
|
Error during local alloc.
|
4
|
TGA_ERROR_LLOCK
|
Error during local lock.
|
5
|
TGA_ERROR_ORIG_GALLOC
|
Error during global alloc for TGAOriginalFile.
|
6
|
TGA_ERROR_ORIG_GLOCK
|
Error during global lock for TGAOriginalFile.
|
7
|
TGA_ERROR_SCAN_GALLOC
|
Error during global alloc for ScanLineTable.
|
8
|
TGA_ERROR_SCAN_GLOCK
|
Error during global lock for ScanLineTable.
|
9
|
TGA_ERROR_EXT_GALLOC
|
Error during global alloc for TGAExtDevArea.
|
10
|
TGA_ERROR_EXT_GLOCK
|
Error during global lock for TGAExtDevArea.
|
11
|
TGA_ERROR_EXT_SIZE
|
Extension area size incorrect.
|
12
|
TGA_ERROR_FILLEXT
|
Error during filling up extension are struct.
|
13
|
TGA_ERROR_DEV_GALLOC
|
Error during global alloc for Developer Area.
|
14
|
TGA_ERROR_DEV_GLOCK
|
Error during global lock for Developer Area.
|
15
|
TGA_ERROR_STAMP_GALLOC
|
Error during global alloc for Postage Stamp.
|
16
|
TGA_ERROR_STAMP_GLOCK
|
Error during global lock for Postage Stamp.
|
17
|
TGA_ERROR_CORR_GALLOC
|
Error during global alloc for Correction Table.
|
18
|
TGA_ERROR_CORR_GLOCK
|
Error during global lock for Correction Table.
|
19
|
TGA_ERROR_FILE_CORRUPTED
|
File corrupted or incorrect format.
|
20
|
TGA_ERROR_NEWFILE_CORRUPTED
|
New TGA file corrupted or incorrect format above Original Area.
|
21
|
TGA_ERROR_NOT_NEW_FORMAT
|
The given function cannot operate on original or unknown TGA file format.
|
22
|
TGA_ERROR_NOT_ENCODED
|
User hasn’t run EncodeTGAFile function.
|
23
|
TGA_ERROR_BITMAP
|
Error in data of BitmapInfoHeader.
|
24
|
TGA_ERROR_IMAGETYPE
|
Unknow TGA image type.
|
25
|
TGA_ERROR_NO_CLRMAP
|
No color map data in TGA file.
|
26
|
TGA_ERROR_NO_EXTAREA
|
No extension area in TGA file.
|
27
|
TGA_ERROR_NO_DEV
|
No developer area in TGA file.
|
28
|
TGA_ERROR_NO_CLRCORR
|
No color correction table in TGA file.
|
29
|
TGA_ERROR_NO_STAMP
|
No Postage Stamp Data in TGA file.
|
30
|
TGA_ERROR_BUF_GALLOC
|
Buffer alloc error.
|
31
|
TGA_ERROR_BUF_GLOCK
|
Buffer lock error.
|
32
|
TGA_ERROR_CONV
|
Conversation error.
|
33
|
TGA_ERROR_SCANLINE_GALLOC
|
No space for scan line table.
|
34
|
TGA_ERROR_HDC
|
hDC error.
|
35
|
TGA_ERROR_PALETTE
|
Palette creating error.
|
36
|
TGA_ERROR_SET_DIBITS
|
SetDIBits error.
|
37
|
TGA_ERROR_GET_DIBITS
|
GetDIBits error.
|
38
|
TGA_ERROR_CREAT_BITMAP
|
CreateDIBitmap error.
|
39
|
TGA_ERROR_IO
|
File I/O error.
|
40
|
TGA_ERROR_DOSFILE
|
Must be added to dos error code.
|