LWQ
2025-07-14 52d230fd0eb38adc5c6f4c6d6ed3786a3c19354d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
/***************************************************************************/
/*
 
    Filename:  MILERR.H
    Owner   :  Matrox Imaging
    Revision:  10.35.1105
    Content :  This file contains the defines that are used by the
               mil functions to generate error codes and messages that
               will be used by the MIL Application Error Logging and
               other error related functions.
 
    Copyright © Matrox Electronic Systems Ltd., 1992-2019.
    All Rights Reserved
 
*/
/***************************************************************************/
 
#ifndef  __MILERR_H
#define  __MILERR_H
 
/*
First line is the error code.
Second line is the error message for this code.
Other 9 lines are optional sub-messages with more detailed information.
 
------------------------------------------------------------------------
-                                                                      -
-  WARNING: Strings (including the NULL character at the end) should   -
-           never be longer than M_ERROR_MESSAGE_SIZE (128L).          -
-           No checking is done anywhere in the code to ensure this.   -
-                                                                      -
------------------------------------------------------------------------
*/
 
 
#define NO_MSG                   MIL_TEXT("")  /* empty error message          */
#define NO_SUBMSG                MIL_TEXT("")  /* empty sub-error message      */
#define NO_FCTNAME               MIL_TEXT("")  /* empty function name          */
 
// The following define must be set to a value higher
// than the error subcode range. For now, error subcode
// range is 1-9. M_NBSUBERRMSGMAX is 10.
#define M_SYSTEM_STRING_CODE     M_NBSUBERRMSGMAX
 
/* LIST OF ERROR CODES AND MESSAGES */
 
#define M_NULL_ERROR             0L
#define M_ERR_0_MSG              MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_1         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_2         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_3         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_4         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_5         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_6         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_7         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_8         MIL_TEXT("Null.")
#define M_ERR_0_SUBMSG_9         MIL_TEXT("Null.")
 
#define M_SIMD_ERROR_1           1L
#define M_ERR_1_MSG              MIL_TEXT("SIMD Error.")
#define M_ERR_1_SUBMSG_1         MIL_TEXT("Cannot force MMX on a non-MMX CPU.")
#define M_ERR_1_SUBMSG_2         MIL_TEXT("Cannot force SSE on a non-SSE CPU or the OS does not support SSE.")
#define M_ERR_1_SUBMSG_3         MIL_TEXT("Cannot force SSE2 on a non-SSE2 CPU or the OS does not support SSE2.")
#define M_ERR_1_SUBMSG_4         MIL_TEXT("Cannot force 3DNow on a non-3DNow CPU.")
#define M_ERR_1_SUBMSG_5         MIL_TEXT("Cannot force MMX Extension on a non-MMX Extension CPU.")
#define M_ERR_1_SUBMSG_6         MIL_TEXT("Cannot force 3DNow Extension on a non-3DNow Extension CPU.")
#define M_ERR_1_SUBMSG_7         MIL_TEXT("Cannot force SSE3 on a non-SSE3 CPU or the OS does not support SSE3.")
#define M_ERR_1_SUBMSG_8         MIL_TEXT("Cannot force SSE4 on a non-SSE4 CPU or the OS does not support SSE4.")
#define M_ERR_1_SUBMSG_9         MIL_TEXT("Cannot force AVX on a non-AVX CPU or the OS does not support AVX.")
 
#define M_SIMD_ERROR_2           2L
#define M_ERR_2_MSG              MIL_TEXT("SIMD Error.")
#define M_ERR_2_SUBMSG_1         MIL_TEXT("Cannot force AVX2 on a non-AVX2 CPU or the OS does not support AVX2.")
#define M_ERR_2_SUBMSG_2         NO_SUBMSG
#define M_ERR_2_SUBMSG_3         NO_SUBMSG
#define M_ERR_2_SUBMSG_4         NO_SUBMSG
#define M_ERR_2_SUBMSG_5         NO_SUBMSG
#define M_ERR_2_SUBMSG_6         NO_SUBMSG
#define M_ERR_2_SUBMSG_7         NO_SUBMSG
#define M_ERR_2_SUBMSG_8         NO_SUBMSG
#define M_ERR_2_SUBMSG_9         NO_SUBMSG
 
#define M_FUNC_FCT_ERROR         3L
#define M_ERR_3_MSG              MIL_TEXT("Function call error.")
#define M_ERR_3_SUBMSG_1         MIL_TEXT("MappGetError cannot be called from inside a MIL function. Use MfuncGetError instead.")
#define M_ERR_3_SUBMSG_2         MIL_TEXT("Unable to obtain information about the slave function.")
#define M_ERR_3_SUBMSG_3         MIL_TEXT("Node selected is not a valid node.")
#define M_ERR_3_SUBMSG_4         MIL_TEXT("Cannot execute because an object resides in another workspace than the system selected to perform the call.")
#define M_ERR_3_SUBMSG_5         MIL_TEXT("Propagating calibration informations between two MIL objects that reside on two different remote systems is not supported.")
#define M_ERR_3_SUBMSG_6         NO_SUBMSG
#define M_ERR_3_SUBMSG_7         NO_SUBMSG
#define M_ERR_3_SUBMSG_8         NO_SUBMSG
#define M_ERR_3_SUBMSG_9         NO_SUBMSG
 
#define M_OPERATION_ERROR_5      4L
#define M_ERR_4_MSG              MIL_TEXT("Operation error.")
#define M_ERR_4_SUBMSG_1         MIL_TEXT("Buffer(s) must be unlocked before calling processing functions.")
#define M_ERR_4_SUBMSG_2         MIL_TEXT("Cannot retrieve the system decoder for shadow allocation.")
#define M_ERR_4_SUBMSG_3         MIL_TEXT("This lock type is not allowed on a buffer with GPU access only.")
#define M_ERR_4_SUBMSG_4         MIL_TEXT("The buffer must be unlocked before calling MbufControl.")
#define M_ERR_4_SUBMSG_5         MIL_TEXT("This operation cannot be forced to be executed from a specific node.")
#define M_ERR_4_SUBMSG_6         MIL_TEXT("Node selected is not a valid node.")
#define M_ERR_4_SUBMSG_7         MIL_TEXT("The graphic edition is not supported for this graphic element.")
#define M_ERR_4_SUBMSG_8         MIL_TEXT("No bounding box could be found.")
#define M_ERR_4_SUBMSG_9         MIL_TEXT("No neighbor could be found.")
 
#define M_OPERATION_ERROR_4      5L
#define M_ERR_5_MSG              MIL_TEXT("Operation error.")
#define M_ERR_5_SUBMSG_1         MIL_TEXT("Cannot unlock an unlocked mutex.")
#define M_ERR_5_SUBMSG_2         MIL_TEXT("Cannot free a mutex that still locked.")
#define M_ERR_5_SUBMSG_3         MIL_TEXT("Error while locking the mutex.")
#define M_ERR_5_SUBMSG_4         MIL_TEXT("Error while unlocking the mutex.")
#define M_ERR_5_SUBMSG_5         MIL_TEXT("Error while freeing the mutex.")
#define M_ERR_5_SUBMSG_6         MIL_TEXT("Deinterlacing is not supported on Odyssey systems.")
#define M_ERR_5_SUBMSG_7         MIL_TEXT("MimLocatePeak1d is not supported on Odyssey systems.")
#define M_ERR_5_SUBMSG_8         MIL_TEXT("MimDraw is not supported on Odyssey systems.")
#define M_ERR_5_SUBMSG_9         MIL_TEXT("No file selected by user.")
 
#define M_INVALID_PARAM_ERROR    6L
#define M_ERR_6_MSG              MIL_TEXT("Invalid parameter.")
#define M_ERR_6_SUBMSG_1         MIL_TEXT("Bad parameter value.")
#define M_ERR_6_SUBMSG_2         MIL_TEXT("One of the parameters does not reside within the buffer's limits.")
#define M_ERR_6_SUBMSG_3         MIL_TEXT("The pointer should not be null.")
/* WARNING: Obsolete sub errors (4,5);*/
#define M_ERR_6_SUBMSG_4         MIL_TEXT("Parameter 1 not supported.")
#define M_ERR_6_SUBMSG_5         MIL_TEXT("Parameter 2 not supported.")
#define M_ERR_6_SUBMSG_6         MIL_TEXT("No graphic text font selected.")
#define M_ERR_6_SUBMSG_7         MIL_TEXT("The member StructSize from the MILBUFFERINFOOLD structure which was given as an argument is invalid.")
#define M_ERR_6_SUBMSG_8         MIL_TEXT("The result buffer is too small to hold the result.")
#define M_ERR_6_SUBMSG_9         MIL_TEXT("The scale factors is out of the supported range.")
       
 
#define M_OVERSCAN_ERROR         7L
#define M_ERR_7_MSG              MIL_TEXT("Overscan processing error.")
#define M_ERR_7_SUBMSG_1         MIL_TEXT("Cannot allocate temporary buffers in memory.")
#define M_ERR_7_SUBMSG_2         MIL_TEXT("The buffer is too small to perform the selected overscan.")
#define M_ERR_7_SUBMSG_3         NO_SUBMSG
#define M_ERR_7_SUBMSG_4         NO_SUBMSG
#define M_ERR_7_SUBMSG_5         NO_SUBMSG
#define M_ERR_7_SUBMSG_6         NO_SUBMSG
#define M_ERR_7_SUBMSG_7         NO_SUBMSG
#define M_ERR_7_SUBMSG_8         NO_SUBMSG
#define M_ERR_7_SUBMSG_9         NO_SUBMSG
 
#define M_ALLOC_ERROR            8L
#define M_ERR_8_MSG              MIL_TEXT("Allocation error.")
#define M_ERR_8_SUBMSG_1         MIL_TEXT("Not enough memory to allocate the application.")
#define M_ERR_8_SUBMSG_2         MIL_TEXT("Only one application can be allocated by the host thread.")
#define M_ERR_8_SUBMSG_3         MIL_TEXT("Cannot allocate temporary buffers in memory.")
#define M_ERR_8_SUBMSG_4         MIL_TEXT("Not enough memory to allocate the buffer.")
#define M_ERR_8_SUBMSG_5         MIL_TEXT("Cannot allocate system.")
#define M_ERR_8_SUBMSG_6         MIL_TEXT("Cannot allocate digitizer.")
#define M_ERR_8_SUBMSG_7         MIL_TEXT("Cannot allocate display.")
#define M_ERR_8_SUBMSG_8         MIL_TEXT("Not enough host memory to allocate buffer.")
#define M_ERR_8_SUBMSG_9         MIL_TEXT("Buffer type not supported.")
 
#define M_CHILD_ERROR            9L
#define M_ERR_9_MSG              MIL_TEXT("Child allocation error.")
#define M_ERR_9_SUBMSG_1         MIL_TEXT("Only one application can be allocated by the host thread.")
#define M_ERR_9_SUBMSG_2         MIL_TEXT("Not enough memory to allocate a child application.")
#define M_ERR_9_SUBMSG_3         MIL_TEXT("Not enough memory to allocate a child buffer.")
#define M_ERR_9_SUBMSG_4         MIL_TEXT("Cannot allocate a temporary child buffer in memory.")
#define M_ERR_9_SUBMSG_5         MIL_TEXT("It is impossible to make a band child from a compressed buffer.")
#define M_ERR_9_SUBMSG_6         MIL_TEXT("Impossible to make a band child. The parent does not have enough bands.")
#define M_ERR_9_SUBMSG_7         MIL_TEXT("It is impossible to make a child from a MPEG4 buffer.")
#define M_ERR_9_SUBMSG_8         MIL_TEXT("It is impossible to make a child from a H264 buffer.")
#define M_ERR_9_SUBMSG_9         MIL_TEXT("Cannot allocate a child that is completely outside its parent's limits.")
 
#define M_ACCESS_ERROR           10L
#define M_ERR_10_MSG             MIL_TEXT("Buffer access error.")
#define M_ERR_10_SUBMSG_1        MIL_TEXT("Cannot M_RESTORE a M_RAW file format buffer.")
#define M_ERR_10_SUBMSG_2        MIL_TEXT("Cannot export the buffer.")
#define M_ERR_10_SUBMSG_3        MIL_TEXT("Source buffer must be an M_IMAGE buffer to export it.")
#define M_ERR_10_SUBMSG_4        MIL_TEXT("Cannot import buffer.")
#define M_ERR_10_SUBMSG_5        MIL_TEXT("File format is not supported.")
#define M_ERR_10_SUBMSG_6        MIL_TEXT("Cannot export child buffers in M_PLANAR format.")
#define M_ERR_10_SUBMSG_7        MIL_TEXT("Cannot load the object.")
#define M_ERR_10_SUBMSG_8        MIL_TEXT("Cannot restore the object.")
#define M_ERR_10_SUBMSG_9        MIL_TEXT("Cannot save the object.")
 
#define M_DISPLAY_ERROR          11L
#define M_ERR_11_MSG             MIL_TEXT("Display error.")
#define M_ERR_11_SUBMSG_1        MIL_TEXT("The display and the buffer must be allocated on the same system.")
#define M_ERR_11_SUBMSG_2        MIL_TEXT("Display Lut dimensions are not compatible with the user Lut.")
#define M_ERR_11_SUBMSG_3        MIL_TEXT("Cannot associate a M_PSEUDO Lut with a monochrome display.")
#define M_ERR_11_SUBMSG_4        MIL_TEXT("The zoom factor is out of the zoom limit or equal to zero.")
#define M_ERR_11_SUBMSG_5        MIL_TEXT("Buffer not currently selected on the display.")
#define M_ERR_11_SUBMSG_6        MIL_TEXT("Incompatible display type.")
#define M_ERR_11_SUBMSG_7        MIL_TEXT("Display must be allocated with the M_WINDOWED init flag.")
#define M_ERR_11_SUBMSG_8        MIL_TEXT("Invalid window handle.")
#define M_ERR_11_SUBMSG_9        MIL_TEXT("Cannot allocate compensation buffer. Display and buffer should belong to the same system.")
 
#define M_OPERATION_ERROR        12L
#define M_ERR_12_MSG             MIL_TEXT("Operation error.")
#define M_ERR_12_SUBMSG_1        MIL_TEXT("Cannot allocate temporary buffer in memory.")
#define M_ERR_12_SUBMSG_2        MIL_TEXT("Not enough host memory to allocate a buffer.")
#define M_ERR_12_SUBMSG_3        MIL_TEXT("The application still has MIL objects associated with it.")
#define M_ERR_12_SUBMSG_4        MIL_TEXT("Only logical addresses are supported on host systems.")
#define M_ERR_12_SUBMSG_5        MIL_TEXT("The pitch must be a multiple of 4 bytes with binary buffers.")
#define M_ERR_12_SUBMSG_6        MIL_TEXT("Requested operation not supported.") 
#define M_ERR_12_SUBMSG_7        MIL_TEXT("Pitch must be a multiple of 2 pixels.")
#define M_ERR_12_SUBMSG_8        MIL_TEXT("Can only create on a physical address with non paged buffers.")
#define M_ERR_12_SUBMSG_9        MIL_TEXT("The polar band to put must fit in the destination.")
 
#define M_DIGITIZER_ERROR        13L
#define M_ERR_13_MSG             MIL_TEXT("Digitizer error.")
#define M_ERR_13_SUBMSG_1        MIL_TEXT("Digitizer and buffer must belong to same system.")
#define M_ERR_13_SUBMSG_2        MIL_TEXT("Cannot free digitizer. Continuous grab in progress.")
#define M_ERR_13_SUBMSG_3        MIL_TEXT("Cannot grab. Digitizer is already being used for a continuous grab.")
#define M_ERR_13_SUBMSG_4        MIL_TEXT("Operation already in progress.")
#define M_ERR_13_SUBMSG_5        MIL_TEXT("Digitizer has denied the request to be freed.")
#define M_ERR_13_SUBMSG_6        MIL_TEXT("A buffer in the list is already being used by MdigGrab or MdigProcess.")
#define M_ERR_13_SUBMSG_7        MIL_TEXT("Unable to load DigitizerController.dll.")
#define M_ERR_13_SUBMSG_8        MIL_TEXT("Unable to find entry point in DigitizerController.dll.")
#define M_ERR_13_SUBMSG_9        MIL_TEXT("Cannot free digitizer. MdigProcess is in progress.")
 
#define M_HOOK_ERROR             14L
#define M_ERR_14_MSG             MIL_TEXT("Hook function error.")
#define M_ERR_14_SUBMSG_1        MIL_TEXT("Function and/or user data not found.")
#define M_ERR_14_SUBMSG_2        MIL_TEXT("A hook function must be provided.")
#define M_ERR_14_SUBMSG_3        MIL_TEXT("Object not hooked to an event.")
#define M_ERR_14_SUBMSG_4        MIL_TEXT("Invalid hook type.")
#define M_ERR_14_SUBMSG_5        MIL_TEXT("Required hardware not present.")
#define M_ERR_14_SUBMSG_6        MIL_TEXT("Address of hooked function is not accessible from current process.")
#define M_ERR_14_SUBMSG_7        MIL_TEXT("MIL has detected a stack corruption in user hook function.")
#define M_ERR_14_SUBMSG_8        MIL_TEXT("A C++ exception occurred in the user hook function.")
#define M_ERR_14_SUBMSG_9        MIL_TEXT("Unspecfied error occurred in driver.")
 
#define M_JPEG_COMPRESS_ERROR    15L
#define M_ERR_15_MSG             MIL_TEXT("JPEG compression error.")
#define M_ERR_15_SUBMSG_1        MIL_TEXT("Unable to allocate memory.")
#define M_ERR_15_SUBMSG_2        MIL_TEXT("Invalid image depth for JPEG compression.")
#define M_ERR_15_SUBMSG_3        MIL_TEXT("Invalid compression parameter.")
#define M_ERR_15_SUBMSG_4        MIL_TEXT("Invalid Huffman table.")
#define M_ERR_15_SUBMSG_5        MIL_TEXT("Invalid predictor.")
#define M_ERR_15_SUBMSG_6        MIL_TEXT("Invalid Q Factor.")
#define M_ERR_15_SUBMSG_7        MIL_TEXT("Invalid quantization table.")
#define M_ERR_15_SUBMSG_8        MIL_TEXT("Invalid restart interval.")
#define M_ERR_15_SUBMSG_9        MIL_TEXT("Invalid source or destination format.")
 
#define M_COMPRESS_ERROR         16L
#define M_ERR_16_MSG             MIL_TEXT("Compression error.")
#define M_ERR_16_SUBMSG_1        MIL_TEXT("Invalid compression type.")
#define M_ERR_16_SUBMSG_2        MIL_TEXT("Corrupted data.")
#define M_ERR_16_SUBMSG_3        MIL_TEXT("Invalid image depth for required compression type.")
#define M_ERR_16_SUBMSG_4        MIL_TEXT("Buffer allocated with MbufCreate cannot be the destination of a compression operation.")
#define M_ERR_16_SUBMSG_5        MIL_TEXT("Buffer allocated with MbufCreate cannot be the destination of a MbufPut operation.")
#define M_ERR_16_SUBMSG_6        MIL_TEXT("Buffer too small to contain the compressed data.")
#define M_ERR_16_SUBMSG_7        MIL_TEXT("Cannot modify the pointer of a buffer allocated with MbufCreate.")
#define M_ERR_16_SUBMSG_8        NO_SUBMSG
#define M_ERR_16_SUBMSG_9        NO_SUBMSG
 
#define M_JPEG_COMPRESS_ERROR_2  17L
#define M_ERR_17_MSG             MIL_TEXT("JPEG compression error.")
#define M_ERR_17_SUBMSG_1        MIL_TEXT("Chrominance tables are allowed only with 3 band YUV buffers.")
#define M_ERR_17_SUBMSG_2        MIL_TEXT("Luminance tables are allowed only with 3 band YUV buffers.")
#define M_ERR_17_SUBMSG_3        MIL_TEXT("The predictor value is only available for 1 band buffers or child band buffers.")
#define M_ERR_17_SUBMSG_4        MIL_TEXT("The Q factor is only available for 1 band buffers or band child band buffers.")
#define M_ERR_17_SUBMSG_5        MIL_TEXT("The restart interval is only available for 1 band buffers or child band buffers.")
#define M_ERR_17_SUBMSG_6        MIL_TEXT("The source image must be a multiple of 16 in X and a multiple of 8 in Y.")
#define M_ERR_17_SUBMSG_7        MIL_TEXT("The destination image must be a multiple of 16 in X and a multiple of 8 in Y.")
#define M_ERR_17_SUBMSG_8        MIL_TEXT("The source image must be a multiple of 16 in X and a multiple of 16 in Y.")
#define M_ERR_17_SUBMSG_9        MIL_TEXT("The destination image must be a multiple of 16 in X and a multiple of 16 in Y.")
 
 
#define M_BMP_ERROR              18L
#define M_ERR_18_MSG             MIL_TEXT("BMP handler file access error.")
#define M_ERR_18_SUBMSG_1        MIL_TEXT("Not a bitmap file.")
#define M_ERR_18_SUBMSG_2        MIL_TEXT("Error closing bitmap file.")
#define M_ERR_18_SUBMSG_3        MIL_TEXT("Cannot open file in read mode.")
#define M_ERR_18_SUBMSG_4        MIL_TEXT("Error reading file.")
#define M_ERR_18_SUBMSG_5        MIL_TEXT("Unable to position file pointer.")
#define M_ERR_18_SUBMSG_6        MIL_TEXT("Cannot create or open file in write mode.")
#define M_ERR_18_SUBMSG_7        MIL_TEXT("No bitmap file opened in read mode.")
#define M_ERR_18_SUBMSG_8        MIL_TEXT("No bitmap file opened in write mode.")
#define M_ERR_18_SUBMSG_9        MIL_TEXT("Error writing file.")
 
#define M_BMP_ERROR_2            19L
#define M_ERR_19_MSG             MIL_TEXT("BMP handler general error.")
#define M_ERR_19_SUBMSG_1        MIL_TEXT("Unable to allocate sufficient memory.")
#define M_ERR_19_SUBMSG_2        MIL_TEXT("Color format not supported.")
#define M_ERR_19_SUBMSG_3        MIL_TEXT("Invalid write color format specified.")
#define M_ERR_19_SUBMSG_4        MIL_TEXT("Invalid write compression type specified.")
#define M_ERR_19_SUBMSG_5        MIL_TEXT("Conversion not supported.")
#define M_ERR_19_SUBMSG_6        MIL_TEXT("Invalid array format specified.")
#define M_ERR_19_SUBMSG_7        MIL_TEXT("Invalid length of palette arrays specified.")
#define M_ERR_19_SUBMSG_8        MIL_TEXT("No palette to read.")
#define M_ERR_19_SUBMSG_9        MIL_TEXT("Palette not needed for current write format.")
 
 
#define M_TIFF_ERROR             20L
#define M_ERR_20_MSG             MIL_TEXT("TIFF file access error.")
#define M_ERR_20_SUBMSG_1        MIL_TEXT("Cannot open file.")
#define M_ERR_20_SUBMSG_2        MIL_TEXT("Cannot close file.")
#define M_ERR_20_SUBMSG_3        MIL_TEXT("Cannot read file.")
#define M_ERR_20_SUBMSG_4        MIL_TEXT("Cannot read file.")
#define M_ERR_20_SUBMSG_5        MIL_TEXT("Cannot write to file.")
#define M_ERR_20_SUBMSG_6        MIL_TEXT("Cannot allocate temporary buffer in memory.")
#define M_ERR_20_SUBMSG_7        MIL_TEXT("The image file does not conform to the TIFF 6.0 specification.")
#define M_ERR_20_SUBMSG_8        MIL_TEXT("Wrong Byte Order, Only INTEL Byte Ordering supported.")
#define M_ERR_20_SUBMSG_9        MIL_TEXT("Not a TIFF file.")
 
#define M_MIL_FILE_ERROR         21L
#define M_ERR_21_MSG             MIL_TEXT("MIL file access error.")
#define M_ERR_21_SUBMSG_1        MIL_TEXT("Cannot open file.")
#define M_ERR_21_SUBMSG_2        MIL_TEXT("Cannot close file.")
#define M_ERR_21_SUBMSG_3        MIL_TEXT("Cannot read file.")
#define M_ERR_21_SUBMSG_4        MIL_TEXT("Cannot read file.")
#define M_ERR_21_SUBMSG_5        MIL_TEXT("Cannot write to file.")
#define M_ERR_21_SUBMSG_6        MIL_TEXT("Cannot allocate temporary buffer in memory.")
#define M_ERR_21_SUBMSG_7        MIL_TEXT("The image file does not conform to the TIFF 6.0 specification.")
#define M_ERR_21_SUBMSG_8        MIL_TEXT("Wrong Byte Order, Only INTEL Byte Ordering supported.")
#define M_ERR_21_SUBMSG_9        MIL_TEXT("Not a MIL file.")
 
#define M_MIL_FILE_ERROR_2       22L
#define M_ERR_22_MSG             MIL_TEXT("MIL file access error.")
#define M_ERR_22_SUBMSG_1        MIL_TEXT("Only 8, 16 or 32 BitsPerSample supported.")
#define M_ERR_22_SUBMSG_2        MIL_TEXT("Lempel-Ziv & Welch (LZW) compression not supported.")
#define M_ERR_22_SUBMSG_3        MIL_TEXT("PhotometricInterp incompatible with SamplePerPixel.")
#define M_ERR_22_SUBMSG_4        MIL_TEXT("Only PlanarConfiguration 2 supported for multi-band images.")
#define M_ERR_22_SUBMSG_5        MIL_TEXT("Up to 8 Samples Per Pixel supported.")
#define M_ERR_22_SUBMSG_6        MIL_TEXT("Only identical BitsPerSample for every sample supported.")
#define M_ERR_22_SUBMSG_7        MIL_TEXT("Cannot seek in file.")
#define M_ERR_22_SUBMSG_8        MIL_TEXT("Bad file format detected.")
#define M_ERR_22_SUBMSG_9        MIL_TEXT("Invalid info requested.")
 
#define M_MIL_FILE_ERROR_3       23L
#define M_ERR_23_MSG             MIL_TEXT("MIL file access error.")
#define M_ERR_23_SUBMSG_1        MIL_TEXT("Invalid parameter detected.")
#define M_ERR_23_SUBMSG_2        MIL_TEXT("Missing information in file.")
#define M_ERR_23_SUBMSG_3        MIL_TEXT("Invalid size information detected in file.")
#define M_ERR_23_SUBMSG_4        MIL_TEXT("Invalid identification information detected in file.")
#define M_ERR_23_SUBMSG_5        MIL_TEXT("Invalid data information detected in file.")
#define M_ERR_23_SUBMSG_6        MIL_TEXT("Unexpected internal error.")
#define M_ERR_23_SUBMSG_7        MIL_TEXT("Cannot open file: Invalid file name.")
#define M_ERR_23_SUBMSG_8        MIL_TEXT("Unable to open or access file, or file contains an invalid stream.")
#define M_ERR_23_SUBMSG_9        MIL_TEXT("Invalid stream.")
 
#define M_MULTI_THREAD_ERROR     24L
#define M_ERR_24_MSG             MIL_TEXT("Multi thread error.")
#define M_ERR_24_SUBMSG_1        NO_SUBMSG
#define M_ERR_24_SUBMSG_2        MIL_TEXT("Invalid MIL_ID, MIL thread or event was not allocated in current HOST thread.")
#define M_ERR_24_SUBMSG_3        MIL_TEXT("Application must be freed before exiting a thread.")
#define M_ERR_24_SUBMSG_4        MIL_TEXT("Operation not supported on this system.")
#define M_ERR_24_SUBMSG_5        MIL_TEXT("Cannot allocate thread.")
#define M_ERR_24_SUBMSG_6        MIL_TEXT("Cannot select this thread in the current host thread.")
#define M_ERR_24_SUBMSG_7        MIL_TEXT("The thread belongs to a system that does not support this operation.")
#define M_ERR_24_SUBMSG_8        MIL_TEXT("Operation not supported.")
#define M_ERR_24_SUBMSG_9        MIL_TEXT("Cannot wait for the completion of a thread allocated in another host thread.")
 
#define M_JPEG_ERROR             25L
#define M_ERR_25_MSG             MIL_TEXT("JPEG handler general error.")
#define M_ERR_25_SUBMSG_1        MIL_TEXT("Color format not supported.")
#define M_ERR_25_SUBMSG_2        MIL_TEXT("Error closing JPEG file.")
#define M_ERR_25_SUBMSG_3        MIL_TEXT("Error opening JPEG file.")
#define M_ERR_25_SUBMSG_4        MIL_TEXT("Unable to allocate sufficient memory.")
#define M_ERR_25_SUBMSG_5        MIL_TEXT("Image too large to save.")
#define M_ERR_25_SUBMSG_6        MIL_TEXT("Invalid JPEG marker.")
#define M_ERR_25_SUBMSG_7        MIL_TEXT("Bad identification information detected in file.")
#define M_ERR_25_SUBMSG_8        MIL_TEXT("Buffer to receive data does not fit with data.")
#define M_ERR_25_SUBMSG_9        MIL_TEXT("Error reading JPEG file.")
 
#define M_BUFFER_FREE_ERROR      26L
#define M_ERR_26_MSG             MIL_TEXT("Buffer free operation error.")
#define M_ERR_26_SUBMSG_1        MIL_TEXT("Buffer still has child(ren) associated with it.")
#define M_ERR_26_SUBMSG_2        MIL_TEXT("This buffer is currently being used.")
#define M_ERR_26_SUBMSG_3        MIL_TEXT("User attempting to free a system allocated buffer.")
#define M_ERR_26_SUBMSG_4        MIL_TEXT("Internal error, internal function attempting to free a user allocated buffer.")
#define M_ERR_26_SUBMSG_5        MIL_TEXT("This buffer is currently being used by a digitizer for a continuous grab.")
#define M_ERR_26_SUBMSG_6        MIL_TEXT("Memory corruption detected: the guard value has been overwritten.")
#define M_ERR_26_SUBMSG_7        MIL_TEXT("This buffer is still remotely mapped.")
#define M_ERR_26_SUBMSG_8        MIL_TEXT("Error while freeing non-paged buffer.")
#define M_ERR_26_SUBMSG_9        MIL_TEXT("Error while freeing paged buffer.")
 
#define M_SYSTEM_FREE_ERROR      27L
#define M_ERR_27_MSG             MIL_TEXT("System free error.")
#define M_ERR_27_SUBMSG_1        MIL_TEXT("System still has buffer(s) associated with it.")
#define M_ERR_27_SUBMSG_2        MIL_TEXT("System still has display(s) associated with it.")
#define M_ERR_27_SUBMSG_3        MIL_TEXT("System still has digitizer(s) associated with it.")
#define M_ERR_27_SUBMSG_4        MIL_TEXT("Cannot free M_DEFAULT_HOST.")
#define M_ERR_27_SUBMSG_5        MIL_TEXT("System still has object(s) associated with it.")
#define M_ERR_27_SUBMSG_6        MIL_TEXT("System still has processing object(s) associated with it.")
#define M_ERR_27_SUBMSG_7        MIL_TEXT("System is still selected in at least one thread.")
#define M_ERR_27_SUBMSG_8        NO_SUBMSG
#define M_ERR_27_SUBMSG_9        NO_SUBMSG
 
#define M_FUNCTION_START_ERROR   28L
#define M_ERR_28_MSG             MIL_TEXT("Function start error.")
#define M_ERR_28_SUBMSG_1        MIL_TEXT("No application allocated.")
#define M_ERR_28_SUBMSG_2        NO_SUBMSG
#define M_ERR_28_SUBMSG_3        NO_SUBMSG
#define M_ERR_28_SUBMSG_4        NO_SUBMSG
#define M_ERR_28_SUBMSG_5        NO_SUBMSG
#define M_ERR_28_SUBMSG_6        NO_SUBMSG
#define M_ERR_28_SUBMSG_7        NO_SUBMSG
#define M_ERR_28_SUBMSG_8        NO_SUBMSG
#define M_ERR_28_SUBMSG_9        NO_SUBMSG
 
#define M_COMMAND_DECODER_ERROR  29L
#define M_ERR_29_MSG             MIL_TEXT("System command error.")
#define M_ERR_29_SUBMSG_1        MIL_TEXT("Requested operation not supported.")
#define M_ERR_29_SUBMSG_2        MIL_TEXT("Operation execution failed.")
#define M_ERR_29_SUBMSG_3        MIL_TEXT("Requested Raw Call is not supported.")
#define M_ERR_29_SUBMSG_4        NO_SUBMSG 
#define M_ERR_29_SUBMSG_5        NO_SUBMSG
#define M_ERR_29_SUBMSG_6        NO_SUBMSG
#define M_ERR_29_SUBMSG_7        NO_SUBMSG
#define M_ERR_29_SUBMSG_8        NO_SUBMSG
#define M_ERR_29_SUBMSG_9        NO_SUBMSG
 
#define M_LABELLING_ERROR        30L
#define M_ERR_30_MSG             MIL_TEXT("Labeling error.")
#define M_ERR_30_SUBMSG_1        MIL_TEXT("Maximum number of labels reached.")
#define M_ERR_30_SUBMSG_2        MIL_TEXT("Should use a buffer of greater bit depth.")
#define M_ERR_30_SUBMSG_3        MIL_TEXT("Maximum number of labels reached.\nShould use a buffer of greater bit depth.")
#define M_ERR_30_SUBMSG_4        NO_SUBMSG
#define M_ERR_30_SUBMSG_5        NO_SUBMSG
#define M_ERR_30_SUBMSG_6        NO_SUBMSG
#define M_ERR_30_SUBMSG_7        NO_SUBMSG
#define M_ERR_30_SUBMSG_8        NO_SUBMSG
#define M_ERR_30_SUBMSG_9        NO_SUBMSG
 
#define M_FILE_ERROR             31L
#define M_ERR_31_MSG             MIL_TEXT("File access error.")
#define M_ERR_31_SUBMSG_1        MIL_TEXT("Cannot open output file.")
#define M_ERR_31_SUBMSG_2        MIL_TEXT("Cannot write to file.")
#define M_ERR_31_SUBMSG_3        MIL_TEXT("Cannot open input file.")
#define M_ERR_31_SUBMSG_4        MIL_TEXT("Cannot read file.")
#define M_ERR_31_SUBMSG_5        MIL_TEXT("Cannot close output file.")
#define M_ERR_31_SUBMSG_6        MIL_TEXT("Cannot close input file.")
#define M_ERR_31_SUBMSG_7        MIL_TEXT("The FileFormat parameter does not represent the actual file format.")
#define M_ERR_31_SUBMSG_8        MIL_TEXT("This OS does not support file access.")
#define M_ERR_31_SUBMSG_9        MIL_TEXT("Not a MIL file.")
 
#define M_APP_FREE_ERROR         32L
#define M_ERR_32_MSG             MIL_TEXT("Application free operation error.")
#define M_ERR_32_SUBMSG_1        MIL_TEXT("Application still has system(s) associated with it.")
#define M_ERR_32_SUBMSG_2        MIL_TEXT("Default host system still has buffer(s) associated with it.")
#define M_ERR_32_SUBMSG_3        MIL_TEXT("Application still has child(ren) associated with it.")
#define M_ERR_32_SUBMSG_4        MIL_TEXT("Application was not freed.")
#define M_ERR_32_SUBMSG_5        MIL_TEXT("Application still has object(s) associated with it.")
#define M_ERR_32_SUBMSG_6        MIL_TEXT("Application must be freed in the thread in which it was allocated.")
#define M_ERR_32_SUBMSG_7        MIL_TEXT("Some display related object(s) were not freed.")
#define M_ERR_32_SUBMSG_8        MIL_TEXT("Could not free the Auxiliary IO service.")
#define M_ERR_32_SUBMSG_9        MIL_TEXT("Application is still processing.")
 
#define M_TIFF_ERROR_2           33L
#define M_ERR_33_MSG             MIL_TEXT("TIFF File access error.")
#define M_ERR_33_SUBMSG_1        MIL_TEXT("Only 1, 8, 16 or 32 BitsPerSample supported.")
#define M_ERR_33_SUBMSG_2        MIL_TEXT("Cannot read compressed image file.")
#define M_ERR_33_SUBMSG_3        MIL_TEXT("PhotometricInterp incompatible with SamplePerPixel.")
#define M_ERR_33_SUBMSG_4        MIL_TEXT("Only PlanarConfiguration 2 supported for multi-band images.")
#define M_ERR_33_SUBMSG_5        MIL_TEXT("Up to 8 Samples Per Pixel supported.")
#define M_ERR_33_SUBMSG_6        MIL_TEXT("Only identical BitsPerSample for every sample supported.")
#define M_ERR_33_SUBMSG_7        MIL_TEXT("Cannot seek in file.")
#define M_ERR_33_SUBMSG_8        MIL_TEXT("Bad file format detected.")
#define M_ERR_33_SUBMSG_9        MIL_TEXT("Invalid info requested.")
 
#define M_PROCESSING_ERROR       34L
#define M_ERR_34_MSG             MIL_TEXT("Processing error.")
#define M_ERR_34_SUBMSG_1        MIL_TEXT("All buffers do not have the same working system.")
#define M_ERR_34_SUBMSG_2        MIL_TEXT("Cannot find any working system between buffers.")
#define M_ERR_34_SUBMSG_3        MIL_TEXT("Cannot process a HOST buffer as a whole and a temporary buffer.")
#define M_ERR_34_SUBMSG_4        MIL_TEXT("Source buffers cannot overlap with destination buffers.")
#define M_ERR_34_SUBMSG_5        MIL_TEXT("No processor on target processing system.")
#define M_ERR_34_SUBMSG_6        MIL_TEXT("Pixel values out of supported range.")
#define M_ERR_34_SUBMSG_7        NO_SUBMSG
#define M_ERR_34_SUBMSG_8        NO_SUBMSG
#define M_ERR_34_SUBMSG_9        MIL_TEXT("Not enough memory or system limitation, cannot process buffer.")
 
#define M_INVALID_ID             35L
#define M_ERR_35_MSG             MIL_TEXT("Invalid MIL ID.")
#define M_ERR_35_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_35_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_35_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_35_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_35_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_35_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_35_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_35_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_35_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_INVALID_NATURE         36L
#define M_ERR_36_MSG             MIL_TEXT("Inappropriate MIL ID.")
#define M_ERR_36_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_36_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_36_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_36_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_36_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_36_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_36_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_36_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_36_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_INVALID_PARAM_ERROR_2  37L
#define M_ERR_37_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_37_SUBMSG_1        MIL_TEXT("For this operation, you should supply a LUT buffer with at least 512 entries.")
#define M_ERR_37_SUBMSG_2        MIL_TEXT("For this operation the grab mode must be asynchronous.")
#define M_ERR_37_SUBMSG_3        MIL_TEXT("This type of conversion requires two 3 band buffers.")
#define M_ERR_37_SUBMSG_4        MIL_TEXT("This type of conversion requires a 3 band source buffer.")
#define M_ERR_37_SUBMSG_5        MIL_TEXT("This type of conversion requires a 3 band destination buffer.")
#define M_ERR_37_SUBMSG_6        MIL_TEXT("Invalid interpolation type specified.")
#define M_ERR_37_SUBMSG_7        MIL_TEXT("Specified center is outside buffer.")
#define M_ERR_37_SUBMSG_8        MIL_TEXT("A 8 or 16 bit monochrome uncompressed image buffer is required for this operation.")
#define M_ERR_37_SUBMSG_9        MIL_TEXT("LUTs must be 1 or 3 bands, 8 or 16 bit.")
 
#define M_INVALID_ATTRIBUTE      38L
#define M_ERR_38_MSG             MIL_TEXT("Invalid attributes.")
#define M_ERR_38_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_38_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_38_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_38_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_38_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_38_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_38_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_38_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_38_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_CALL_CONTEXT_ERROR     39L
#define M_ERR_39_MSG             MIL_TEXT("Call context error.")
#define M_ERR_39_SUBMSG_1        MIL_TEXT("Cannot allocate temporary buffer in memory.")
#define M_ERR_39_SUBMSG_2        NO_SUBMSG
#define M_ERR_39_SUBMSG_3        NO_SUBMSG
#define M_ERR_39_SUBMSG_4        NO_SUBMSG
#define M_ERR_39_SUBMSG_5        NO_SUBMSG
#define M_ERR_39_SUBMSG_6        NO_SUBMSG
#define M_ERR_39_SUBMSG_7        NO_SUBMSG
#define M_ERR_39_SUBMSG_8        NO_SUBMSG
#define M_ERR_39_SUBMSG_9        NO_SUBMSG
 
#define M_DRIVER_OBSOLETE        40L
#define M_ERR_40_MSG             MIL_TEXT("MIL driver version.")
#define M_ERR_40_SUBMSG_1        MIL_TEXT("Driver version is invalid.")
#define M_ERR_40_SUBMSG_2        NO_SUBMSG
#define M_ERR_40_SUBMSG_3        NO_SUBMSG
#define M_ERR_40_SUBMSG_4        NO_SUBMSG
#define M_ERR_40_SUBMSG_5        NO_SUBMSG
#define M_ERR_40_SUBMSG_6        NO_SUBMSG
#define M_ERR_40_SUBMSG_7        NO_SUBMSG
#define M_ERR_40_SUBMSG_8        NO_SUBMSG
#define M_ERR_40_SUBMSG_9        NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_3  41L
#define M_ERR_41_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_41_SUBMSG_1        MIL_TEXT("Parameter 1 not in supported list.")
#define M_ERR_41_SUBMSG_2        MIL_TEXT("Parameter 2 not in supported list.")
#define M_ERR_41_SUBMSG_3        MIL_TEXT("Parameter 3 not in supported list.")
#define M_ERR_41_SUBMSG_4        MIL_TEXT("Parameter 4 not in supported list.")
#define M_ERR_41_SUBMSG_5        MIL_TEXT("Parameter 5 not in supported list.")
#define M_ERR_41_SUBMSG_6        MIL_TEXT("Parameter 6 not in supported list.")
#define M_ERR_41_SUBMSG_7        MIL_TEXT("Parameter 7 not in supported list.")
#define M_ERR_41_SUBMSG_8        MIL_TEXT("Parameter 8 not in supported list.")
#define M_ERR_41_SUBMSG_9        MIL_TEXT("Parameter 9 not in supported list.")
 
#define M_ALLOC_ERROR_2          42L
#define M_ERR_42_MSG             MIL_TEXT("Allocation error.")
#define M_ERR_42_SUBMSG_1        MIL_TEXT("Not enough host memory to do the operation.")
#define M_ERR_42_SUBMSG_2        MIL_TEXT("Invalid attribute, M_GRAB not supported on host.")
#define M_ERR_42_SUBMSG_3        MIL_TEXT("Incompatible buffer dimensions, SizeBand, SizeY and (SizeX x SizeBit) must be identical.")
#define M_ERR_42_SUBMSG_4        MIL_TEXT("Unable to communicate with MIL Memory manager.")
#define M_ERR_42_SUBMSG_5        MIL_TEXT("The requested memory size is invalid.")
#define M_ERR_42_SUBMSG_6        MIL_TEXT("Impossible to make a band child of a compressed buffer.")
#define M_ERR_42_SUBMSG_7        MIL_TEXT("You require a fast overscan buffer, but the M_ALLOCATION_OVERSCAN_SIZE is 0.")
#define M_ERR_42_SUBMSG_8        MIL_TEXT("Memory already allocated.")
#define M_ERR_42_SUBMSG_9        MIL_TEXT("The MIL_ID table is full. Make sure you do not have a resource leak.")
 
#define M_TIMER_ERROR            43L
#define M_ERR_43_MSG             MIL_TEXT("Timer error.")
#define M_ERR_43_SUBMSG_1        MIL_TEXT("Invalid ControlType specified.")
#define M_ERR_43_SUBMSG_2        MIL_TEXT("TimePtr parameter cannot be null.")
#define M_ERR_43_SUBMSG_3        MIL_TEXT("Installed hardware does not support a high-resolution performance counter.")
#define M_ERR_43_SUBMSG_4        MIL_TEXT("Timer must be reset prior to a read.")
#define M_ERR_43_SUBMSG_5        MIL_TEXT("Does not support remote application.")
#define M_ERR_43_SUBMSG_6        MIL_TEXT("M_TRACE timer cannot be reset.")
#define M_ERR_43_SUBMSG_7        NO_SUBMSG
#define M_ERR_43_SUBMSG_8        NO_SUBMSG
#define M_ERR_43_SUBMSG_9        NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_4  44L
#define M_ERR_44_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_44_SUBMSG_1        MIL_TEXT("The valid data formats for binary buffers are M_SINGLE_BAND and M_PLANAR.")
#define M_ERR_44_SUBMSG_2        MIL_TEXT("Operation not supported on float buffers.")
#define M_ERR_44_SUBMSG_3        MIL_TEXT("Destination buffer is binary, MaskValue must be equal to 0 or 1.")
#define M_ERR_44_SUBMSG_4        MIL_TEXT("Image buffer must be monochrome for this operation.")
#define M_ERR_44_SUBMSG_5        MIL_TEXT("Source buffers must be of the same type.")
#define M_ERR_44_SUBMSG_6        MIL_TEXT("Integer source buffers must be unsigned.")
#define M_ERR_44_SUBMSG_7        MIL_TEXT("Operation not supported with binary buffers.")
#define M_ERR_44_SUBMSG_8        MIL_TEXT("Source buffers must be of the same pixel depth.")
#define M_ERR_44_SUBMSG_9        MIL_TEXT("The width and height of the source and destination buffers must be a power of 2.")
 
#define M_INVALID_PARAM_ERROR_5  45L
#define M_ERR_45_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_45_SUBMSG_1        MIL_TEXT("The number of bands is not valid.")
#define M_ERR_45_SUBMSG_2        MIL_TEXT("The X dimension is not valid.")
#define M_ERR_45_SUBMSG_3        MIL_TEXT("The Y dimension is not valid.")
#define M_ERR_45_SUBMSG_4        MIL_TEXT("The pixel depth is not valid.")
#define M_ERR_45_SUBMSG_5        MIL_TEXT("The buffer attributes are not valid.")
#define M_ERR_45_SUBMSG_6        MIL_TEXT("The data type is not valid.")
#define M_ERR_45_SUBMSG_7        MIL_TEXT("Invalid FFT type specified.")
#define M_ERR_45_SUBMSG_8        MIL_TEXT("Invalid operation mode specified.")
#define M_ERR_45_SUBMSG_9        MIL_TEXT("Invalid transform specified.")
 
#define M_INVALID_PARAM_ERROR_6  46L
#define M_ERR_46_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_46_SUBMSG_1        MIL_TEXT("Operation not supported on 32-bit buffers.")
#define M_ERR_46_SUBMSG_2        MIL_TEXT("Invalid minimal variation specified.")
#define M_ERR_46_SUBMSG_3        MIL_TEXT("Invalid combination of control flag constants.")
#define M_ERR_46_SUBMSG_4        MIL_TEXT("A marker image or a minimal variation must be supplied.")
#define M_ERR_46_SUBMSG_5        MIL_TEXT("Value out of range.")
#define M_ERR_46_SUBMSG_6        MIL_TEXT("Invalid mode specified.")
#define M_ERR_46_SUBMSG_7        MIL_TEXT("The pointer should not be null.")
#define M_ERR_46_SUBMSG_8        MIL_TEXT("The buffer must be a M_IMAGE + M_COMPRESS buffer.")
#define M_ERR_46_SUBMSG_9        MIL_TEXT("Invalid compression type.")
 
#define M_INVALID_PARAM_ERROR_7  47L
#define M_ERR_47_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_47_SUBMSG_1        MIL_TEXT("Cannot change the compression type of a single band.")
#define M_ERR_47_SUBMSG_2        MIL_TEXT("Invalid ControlFlag value.")
#define M_ERR_47_SUBMSG_3        MIL_TEXT("The MIL_INT64 pointer cannot be null.")
#define M_ERR_47_SUBMSG_4        MIL_TEXT("Invalid source buffers.")
#define M_ERR_47_SUBMSG_5        MIL_TEXT("Invalid Q factor value.")
#define M_ERR_47_SUBMSG_6        MIL_TEXT("Invalid destination buffers.")
#define M_ERR_47_SUBMSG_7        MIL_TEXT("The second LUT must be M_NULL for M_WARP_POLYNOMIAL operation mode.")
#define M_ERR_47_SUBMSG_8        MIL_TEXT("The angle range must be less than 360 degrees.")
#define M_ERR_47_SUBMSG_9        MIL_TEXT("Invalid WarpParam1Id Size or Type.")
 
#define M_INVALID_PARAM_ERROR_8  48L
#define M_ERR_48_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_48_SUBMSG_1        MIL_TEXT("Source buffers must be of the same type and pixel depth.")
#define M_ERR_48_SUBMSG_2        MIL_TEXT("Destination buffers must be of the same type and pixel depth.")
#define M_ERR_48_SUBMSG_3        MIL_TEXT("Angle value must be between -360 and 360.")
#define M_ERR_48_SUBMSG_4        MIL_TEXT("Polar conversion only supported on float buffers.")
#define M_ERR_48_SUBMSG_5        MIL_TEXT("This type of conversion requires a 1 band destination buffer.")
#define M_ERR_48_SUBMSG_6        MIL_TEXT("Invalid transform type.")
#define M_ERR_48_SUBMSG_7        MIL_TEXT("The M_NORMALIZE flag must be used with this transform.")
#define M_ERR_48_SUBMSG_8        MIL_TEXT("This type of conversion requires a 1 band source buffer.")
#define M_ERR_48_SUBMSG_9        MIL_TEXT("Invalid number of bytes. Use zero or a positive value.")
 
#define M_JPEG_ERROR_2           49L
#define M_ERR_49_MSG             MIL_TEXT("JPEG handler general error.")
#define M_ERR_49_SUBMSG_1        MIL_TEXT("Vertical sampling factor of more than 4 not supported.")
#define M_ERR_49_SUBMSG_2        MIL_TEXT("MIL supports only 1-band and 3-band buffers.")
#define M_ERR_49_SUBMSG_3        MIL_TEXT("MIL only supports sequential baseline DCT JPEG and lossless JPEG files.")
#define M_ERR_49_SUBMSG_4        MIL_TEXT("Point transform not supported.")
#define M_ERR_49_SUBMSG_5        MIL_TEXT("Reading beyond the available data.")
#define M_ERR_49_SUBMSG_6        MIL_TEXT("The EOI marker is before the end of the file.")
#define M_ERR_49_SUBMSG_7        MIL_TEXT("16-bit quantization table not supported.")
#define M_ERR_49_SUBMSG_8        MIL_TEXT("Horizontal sampling factor of more than 4 not supported.")
#define M_ERR_49_SUBMSG_9        MIL_TEXT("Sampling factors do not correspond to any supported format.")
 
#define M_INVALID_PARAM_ERROR_9  50L
#define M_ERR_50_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_50_SUBMSG_1        MIL_TEXT("Inquire type not supported.")
#define M_ERR_50_SUBMSG_2        MIL_TEXT("The look up table must have a Y size of 1.")
#define M_ERR_50_SUBMSG_3        MIL_TEXT("The size of the buffer is too large.")
#define M_ERR_50_SUBMSG_4        MIL_TEXT("The destination buffer cannot be 1-bit.")
#define M_ERR_50_SUBMSG_5        MIL_TEXT("SaturationSizeBit must be 1, 8, 16 or 32.")
#define M_ERR_50_SUBMSG_6        MIL_TEXT("SaturationType must be M_SIGNED, M_UNSIGNED or M_FLOAT.")
#define M_ERR_50_SUBMSG_7        MIL_TEXT("Invalid combination of SaturationType and SizeBit.")
#define M_ERR_50_SUBMSG_8        MIL_TEXT("YUV buffers must be M_UNSIGNED.")
#define M_ERR_50_SUBMSG_9        MIL_TEXT("The file name length must be greater than 0.")
 
#define M_AVI_FILE_ERROR         51L
#define M_ERR_51_MSG             MIL_TEXT("AVI file error.")
#define M_ERR_51_SUBMSG_1        MIL_TEXT("The frame to write contains no data.")
#define M_ERR_51_SUBMSG_2        MIL_TEXT("Error writing into the AVI file.")
#define M_ERR_51_SUBMSG_3        MIL_TEXT("File format not supported.")
#define M_ERR_51_SUBMSG_4        MIL_TEXT("The file format and image format are incompatible.")
#define M_ERR_51_SUBMSG_5        MIL_TEXT("Error opening the AVI file.")
#define M_ERR_51_SUBMSG_6        MIL_TEXT("Invalid file format.")
#define M_ERR_51_SUBMSG_7        MIL_TEXT("Cannot write the frame. The index is full.")
#define M_ERR_51_SUBMSG_8        MIL_TEXT("File format not supported. Cannot import MPEG4 sequences.")
#define M_ERR_51_SUBMSG_9        MIL_TEXT("File format not supported. Cannot import H264 sequences.")
 
#define M_DMA_ERROR              52L
#define M_ERR_52_MSG             MIL_TEXT("Error using Matrox Dma service.")
#define M_ERR_52_SUBMSG_1        MIL_TEXT("Cannot open the Matrox Dma manager.")
#define M_ERR_52_SUBMSG_2        MIL_TEXT("Cannot access PCI data.")
#define M_ERR_52_SUBMSG_3        MIL_TEXT("Unsupported control/inquire")
#define M_ERR_52_SUBMSG_4        MIL_TEXT("Cannot communicate with Memory manager. Check if it is installed and started.")
#define M_ERR_52_SUBMSG_5        MIL_TEXT("Cannot access hook information.")
#define M_ERR_52_SUBMSG_6        MIL_TEXT("Can only perform this operation on the Default Host.")
#define M_ERR_52_SUBMSG_7        MIL_TEXT("Unable to recover info from Dma pool.")
#define M_ERR_52_SUBMSG_8        MIL_TEXT("Unsupported control flag.") // Error logged when using M_LOW_4GB_MEMORY or M_HIGH_4GB_MEMORY
#define M_ERR_52_SUBMSG_9        MIL_TEXT("Could not enable or disable the Write-combining feature.")
 
#define M_BMP_ERROR_3            53L
#define M_ERR_53_MSG             MIL_TEXT("BMP handler general error.")
#define M_ERR_53_SUBMSG_1        MIL_TEXT("MIL does not support a bit count of zero with BMP files.")
#define M_ERR_53_SUBMSG_2        MIL_TEXT("MIL does not support 1-bit BMP files.")
#define M_ERR_53_SUBMSG_3        MIL_TEXT("MIL does not support 4-bit BMP files.")
#define M_ERR_53_SUBMSG_4        MIL_TEXT("Run Length Encoding ( RLE ) compression not supported.")
#define M_ERR_53_SUBMSG_5        NO_SUBMSG
#define M_ERR_53_SUBMSG_6        NO_SUBMSG
#define M_ERR_53_SUBMSG_7        NO_SUBMSG
#define M_ERR_53_SUBMSG_8        NO_SUBMSG
#define M_ERR_53_SUBMSG_9        NO_SUBMSG
 
#define M_JPEG_ERROR_3           54L
#define M_ERR_54_MSG             MIL_TEXT("JPEG handler general error.")
#define M_ERR_54_SUBMSG_1        MIL_TEXT("Invalid JPEG data.")
#define M_ERR_54_SUBMSG_2        MIL_TEXT("Invalid data for a MTRX specific marker.")
#define M_ERR_54_SUBMSG_3        MIL_TEXT("Extended sequential DCT not supported in MIL.")
#define M_ERR_54_SUBMSG_4        MIL_TEXT("Progressive DCT not supported in MIL.")
#define M_ERR_54_SUBMSG_5        MIL_TEXT("YUV9 packed images not supported.")
#define M_ERR_54_SUBMSG_6        MIL_TEXT("YUV12 packed images not supported.")
#define M_ERR_54_SUBMSG_7        MIL_TEXT("YUV24 packed images not supported.")
#define M_ERR_54_SUBMSG_8        MIL_TEXT("Invalid data. EOI marker not found.")
#define M_ERR_54_SUBMSG_9        MIL_TEXT("Cannot create or open file in write mode.")
  
#define M_ALLOC_ERROR_3          55L
#define M_ERR_55_MSG             MIL_TEXT("Allocation error.")
#define M_ERR_55_SUBMSG_1        MIL_TEXT("No pitch control flag used in create.")
#define M_ERR_55_SUBMSG_2        MIL_TEXT("Cannot create a buffer with a physical address.")
#define M_ERR_55_SUBMSG_3        MIL_TEXT("Cannot allocate a M_COMPRESS buffer with the M_DISP attribute.")
#define M_ERR_55_SUBMSG_4        MIL_TEXT("Cannot allocate a M_COMPRESS buffer with the M_SIGNED or M_FLOAT type.")
#define M_ERR_55_SUBMSG_5        MIL_TEXT("Interlaced buffers should have a height of at least 2.")
#define M_ERR_55_SUBMSG_6        MIL_TEXT("Requested system DLL cannot be loaded.")
#define M_ERR_55_SUBMSG_7        MIL_TEXT("MIL DLLs not found.")
#define M_ERR_55_SUBMSG_8        MIL_TEXT("Not enough non-paged memory to allocate the buffer.")
#define M_ERR_55_SUBMSG_9        MIL_TEXT("Not enough non-paged memory for a MIL CE allocation.\nContinuing the application may cause abnormal behavior!")
 
#define M_LIMITATION_ERROR       56L
#define M_ERR_56_MSG             MIL_TEXT("Limitation error.")
#define M_ERR_56_SUBMSG_1        MIL_TEXT("This operation cannot be performed on a section of a compressed buffer.")
#define M_ERR_56_SUBMSG_2        MIL_TEXT("This operation cannot be performed on a child of a compressed buffer.")
#define M_ERR_56_SUBMSG_3        MIL_TEXT("This operation cannot be performed on a section of a YUV buffer.")
#define M_ERR_56_SUBMSG_4        MIL_TEXT("This operation cannot be performed on a child of a YUV buffer.")
#define M_ERR_56_SUBMSG_5        MIL_TEXT("This operation cannot be performed on a section of an M_PACKED buffer.")
#define M_ERR_56_SUBMSG_6        MIL_TEXT("This operation cannot be performed on a child of an M_PACKED buffer.")
#define M_ERR_56_SUBMSG_7        MIL_TEXT("This operation cannot be performed on a section of a M_PLANAR buffer.")
#define M_ERR_56_SUBMSG_8        MIL_TEXT("This operation cannot be performed on a child of a M_PLANAR buffer.")
#define M_ERR_56_SUBMSG_9        MIL_TEXT("This operation can only be performed on a compressed buffer.")
 
#define M_OPERATION_ERROR_2      57L
#define M_ERR_57_MSG             MIL_TEXT("Operation error.")
#define M_ERR_57_SUBMSG_1        MIL_TEXT("Pitch must be a multiple of 4 pixels.")
#define M_ERR_57_SUBMSG_2        MIL_TEXT("The default pitch byte value is incompatible with this type of buffer.")
#define M_ERR_57_SUBMSG_3        MIL_TEXT("Operation not supported on remote systems.")
#define M_ERR_57_SUBMSG_4        MIL_TEXT("Not enough non-paged memory to perform the operation on a remote system.")
#define M_ERR_57_SUBMSG_5        MIL_TEXT("Not enough remote memory to perform the operation on a remote system.")
#define M_ERR_57_SUBMSG_6        MIL_TEXT("Operation not supported on this system.")
#define M_ERR_57_SUBMSG_7        MIL_TEXT("Cannot allocate event.")
#define M_ERR_57_SUBMSG_8        MIL_TEXT("Cannot create event.")
#define M_ERR_57_SUBMSG_9        MIL_TEXT("Buffer low level handle is invalid.")
 
#define M_LICENSING_ERROR        58L
#define M_ERR_58_MSG             MIL_TEXT("Licensing error.")
#define M_ERR_58_SUBMSG_1        MIL_TEXT("A processing function was used with MIL-Lite.")
#define M_ERR_58_SUBMSG_2        MIL_TEXT("License watchdog timed out.")
#define M_ERR_58_SUBMSG_3        MIL_TEXT("A module was used without a valid license.")
#define M_ERR_58_SUBMSG_4        MIL_TEXT("Debugging is not allowed with a run-time license. You must have a development license.")
#define M_ERR_58_SUBMSG_5        MIL_TEXT("Your license does not allow the allocation of JPEG buffers.")
#define M_ERR_58_SUBMSG_6        MIL_TEXT("Your license does not allow the allocation of JPEG2000 buffers.")
#define M_ERR_58_SUBMSG_7        MIL_TEXT("A module not permitted by MappControl(M_LICENSE_PERMIT_MODULES) was used.")
#define M_ERR_58_SUBMSG_8        MIL_TEXT("This Early Access version of MIL has expired. Please contact your Matrox representative to obtain an updated version.")
#define M_ERR_58_SUBMSG_9        MIL_TEXT("The validity period of your MIL license is over. Please contact your Matrox representative to obtain a new license.")
 
#define M_AVI_FILE_ERROR_2       59L
#define M_ERR_59_MSG             MIL_TEXT("AVI file error.")
#define M_ERR_59_SUBMSG_1        NO_SUBMSG
#define M_ERR_59_SUBMSG_2        NO_SUBMSG
#define M_ERR_59_SUBMSG_3        MIL_TEXT("The file is still used by MbufExportSequence.")
#define M_ERR_59_SUBMSG_4        MIL_TEXT("The file is still used by MbufImportSequence.")
#define M_ERR_59_SUBMSG_5        MIL_TEXT("Cannot write frame. The AVI file size limit has been reached.")
#define M_ERR_59_SUBMSG_6        MIL_TEXT("Impossible to write into a closed file.")
#define M_ERR_59_SUBMSG_7        MIL_TEXT("Error creating AVI stream.")
#define M_ERR_59_SUBMSG_8        MIL_TEXT("The file is already open.")
#define M_ERR_59_SUBMSG_9        MIL_TEXT("Impossible to read from a closed file.")
 
#define M_JPEG_COMPRESS_ERROR_3  60L
#define M_ERR_60_MSG             MIL_TEXT("JPEG compression error.")
#define M_ERR_60_SUBMSG_1        MIL_TEXT("Cannot allocate 3-band M_JPEG_LOSSLESS_INTERLACED buffers.")
#define M_ERR_60_SUBMSG_2        MIL_TEXT("In lossless, the RestartInterval multiplied by the number of \ncolumns in the buffer must fit in 16 bits (smaller than 65536).")
#define M_ERR_60_SUBMSG_3        MIL_TEXT("The restart interval must fit in 16 bits (smaller than 65536).")
#define M_ERR_60_SUBMSG_4        MIL_TEXT("Only JPEG lossless buffers can have predictors.")
#define M_ERR_60_SUBMSG_5        MIL_TEXT("Luminance parameters are only allowed for YUV buffers.")
#define M_ERR_60_SUBMSG_6        MIL_TEXT("Chrominance parameters are only allowed for YUV buffers.")
#define M_ERR_60_SUBMSG_7        MIL_TEXT("AC tables and quantization parameters are only allowed \nfor JPEG lossy buffers.")
#define M_ERR_60_SUBMSG_8        MIL_TEXT("For YUV buffers, specific luminance or chrominance \nflags must be used.")
#define M_ERR_60_SUBMSG_9        MIL_TEXT("Field size is only applicable to interlaced buffers.")
 
#define M_AVI_FILE_ERROR_3       61L
#define M_ERR_61_MSG             MIL_TEXT("AVI file error.")
#define M_ERR_61_SUBMSG_1        MIL_TEXT("Error reading from the AVI file.")
#define M_ERR_61_SUBMSG_2        MIL_TEXT("Cannot read after the last frame.")
#define M_ERR_61_SUBMSG_3        NO_SUBMSG
#define M_ERR_61_SUBMSG_4        MIL_TEXT("Images must have a width greater than or equal to 16.")
#define M_ERR_61_SUBMSG_5        MIL_TEXT("Images must have a height greater than or equal to 8.")
#define M_ERR_61_SUBMSG_6        NO_SUBMSG
#define M_ERR_61_SUBMSG_7        MIL_TEXT("The frame rate has not been set.")
#define M_ERR_61_SUBMSG_8        NO_SUBMSG
#define M_ERR_61_SUBMSG_9        MIL_TEXT("The AVI file size exceeds the supported limit.")
 
#define M_USER_BIT_CONFIG_ERROR  62L         // These 2 following message are use for user bits of 4sightII
#define M_ERR_62_MSG             NO_MSG      // Now the error message are move the the milmtxapi.dll
#define M_ERR_62_SUBMSG_1        NO_SUBMSG
#define M_ERR_62_SUBMSG_2        NO_SUBMSG
#define M_ERR_62_SUBMSG_3        NO_SUBMSG
#define M_ERR_62_SUBMSG_4        NO_SUBMSG
#define M_ERR_62_SUBMSG_5        NO_SUBMSG
#define M_ERR_62_SUBMSG_6        NO_SUBMSG
#define M_ERR_62_SUBMSG_7        NO_SUBMSG
#define M_ERR_62_SUBMSG_8        NO_SUBMSG
#define M_ERR_62_SUBMSG_9        NO_SUBMSG
 
#define M_USER_BIT_ERROR         63L
#define M_ERR_63_MSG             NO_MSG
#define M_ERR_63_SUBMSG_1        NO_SUBMSG
#define M_ERR_63_SUBMSG_2        NO_SUBMSG
#define M_ERR_63_SUBMSG_3        NO_SUBMSG
#define M_ERR_63_SUBMSG_4        NO_SUBMSG
#define M_ERR_63_SUBMSG_5        NO_SUBMSG
#define M_ERR_63_SUBMSG_6        NO_SUBMSG
#define M_ERR_63_SUBMSG_7        NO_SUBMSG
#define M_ERR_63_SUBMSG_8        NO_SUBMSG
#define M_ERR_63_SUBMSG_9        NO_SUBMSG
 
#define M_TIFF_ERROR_3           64L
#define M_ERR_64_MSG             MIL_TEXT("TIFF File access error.")
#define M_ERR_64_SUBMSG_1        MIL_TEXT("Error recording tag.")
#define M_ERR_64_SUBMSG_2        MIL_TEXT("LZW compression not supported in multi strip TIFF files.")
#define M_ERR_64_SUBMSG_3        MIL_TEXT("Maximum TIFF file size exceeded")
#define M_ERR_64_SUBMSG_4        MIL_TEXT("BitsPerSample image must be 1 for CCITT 3/4 compression.")
#define M_ERR_64_SUBMSG_5        MIL_TEXT("Compression type not supported.")
#define M_ERR_64_SUBMSG_6        MIL_TEXT("Image Format not supported.")
#define M_ERR_64_SUBMSG_7        MIL_TEXT("Cannot read tile data.")
#define M_ERR_64_SUBMSG_8        MIL_TEXT("Cannot read strip data.")
#define M_ERR_64_SUBMSG_9        MIL_TEXT("Cannot write strip data.")
 
#define M_MIL_FILE_ERROR_4       65L
#define M_ERR_65_MSG             MIL_TEXT("MIL File access error.")
#define M_ERR_65_SUBMSG_1        MIL_TEXT("Error recording tag.")
#define M_ERR_65_SUBMSG_2        MIL_TEXT("LZW compression not supported in multi strip MIL files.")
#define M_ERR_65_SUBMSG_3        MIL_TEXT("Error when closing file. Check disk space.")
#define M_ERR_65_SUBMSG_4        MIL_TEXT("Unable to save: object is too big.")
#define M_ERR_65_SUBMSG_5        MIL_TEXT("Stream is corrupt or has been generated with a newer version of MIL.")
#define M_ERR_65_SUBMSG_6        MIL_TEXT("The specified version is too old to support compression.")
#define M_ERR_65_SUBMSG_7        NO_SUBMSG
#define M_ERR_65_SUBMSG_8        NO_SUBMSG
#define M_ERR_65_SUBMSG_9        NO_SUBMSG
 
#define M_JPEG_ERROR_4           66L
#define M_ERR_66_MSG             MIL_TEXT("JPEG handler general error.")
#define M_ERR_66_SUBMSG_1        MIL_TEXT("Second field of interlaced image not found.")
#define M_ERR_66_SUBMSG_2        MIL_TEXT("Buffer width is greater than the maximum supported.")
#define M_ERR_66_SUBMSG_3        MIL_TEXT("Buffer height is greater than the maximum supported.")
#define M_ERR_66_SUBMSG_4        MIL_TEXT("Error writing JPEG file.")
#define M_ERR_66_SUBMSG_5        NO_SUBMSG
#define M_ERR_66_SUBMSG_6        NO_SUBMSG
#define M_ERR_66_SUBMSG_7        NO_SUBMSG
#define M_ERR_66_SUBMSG_8        NO_SUBMSG
#define M_ERR_66_SUBMSG_9        NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_10 67L
#define M_ERR_67_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_67_SUBMSG_1        MIL_TEXT("The width and height of the source and destination buffers must be a multiple of 8.")
#define M_ERR_67_SUBMSG_2        MIL_TEXT("Operation not supported on 16 bits buffer.")
#define M_ERR_67_SUBMSG_3        MIL_TEXT("Size of image buffers must be greater than or equal to the size of the kernel.")
#define M_ERR_67_SUBMSG_4        MIL_TEXT("Invalid data formats.")
#define M_ERR_67_SUBMSG_5        MIL_TEXT("Operation not supported on 3 bands planar buffers.")
#define M_ERR_67_SUBMSG_6        MIL_TEXT("Float addresses must be a multiple of 4.")
#define M_ERR_67_SUBMSG_7        MIL_TEXT("This operation is only supported on the host.")
#define M_ERR_67_SUBMSG_8        MIL_TEXT("Cannot create an M_NO_MAP buffer with null pointers.")
#define M_ERR_67_SUBMSG_9        MIL_TEXT("Can only create a M_NO_MAP buffer with a physical address.")
 
#define M_J2K_ERROR_1            68L
#define M_ERR_68_MSG             MIL_TEXT("JPEG2000 handler general error.")
#define M_ERR_68_SUBMSG_1        MIL_TEXT("Error closing JPEG2000 file.")
#define M_ERR_68_SUBMSG_2        MIL_TEXT("Unable to allocate sufficient memory.")
#define M_ERR_68_SUBMSG_3        MIL_TEXT("Cannot create or open file in write mode.")
#define M_ERR_68_SUBMSG_4        MIL_TEXT("Error opening JPEG2000 file.")
#define M_ERR_68_SUBMSG_5        MIL_TEXT("Error writing JPEG2000 file.")
#define M_ERR_68_SUBMSG_6        NO_SUBMSG
#define M_ERR_68_SUBMSG_7        NO_SUBMSG
#define M_ERR_68_SUBMSG_8        NO_SUBMSG
#define M_ERR_68_SUBMSG_9        NO_SUBMSG
 
#define M_J2K_ERROR_2            69L
#define M_ERR_69_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_69_SUBMSG_1        MIL_TEXT("Invalid JPEG2000 data.")
#define M_ERR_69_SUBMSG_2        MIL_TEXT("Unexpected marker in the JPEG2000 image.")
#define M_ERR_69_SUBMSG_3        MIL_TEXT("Component index out of range.")
#define M_ERR_69_SUBMSG_4        MIL_TEXT("MIL supports only 1-band and 3-band buffers.")
#define M_ERR_69_SUBMSG_5        MIL_TEXT("All components must have the same bit depth.")
#define M_ERR_69_SUBMSG_6        MIL_TEXT("Unsupported bit depth.")
#define M_ERR_69_SUBMSG_7        MIL_TEXT("Invalid subsampling factors.")
#define M_ERR_69_SUBMSG_8        MIL_TEXT("Scalar implicit quantization not supported.")
#define M_ERR_69_SUBMSG_9        MIL_TEXT("Unsupported coding style.")
 
#define M_LICENSE_ERROR_2        70L
#define M_ERR_70_MSG             MIL_TEXT("License error.")
#define M_ERR_70_SUBMSG_1        MIL_TEXT("No valid license found (1)")
#define M_ERR_70_SUBMSG_2        MIL_TEXT("No valid license found (2)")
#define M_ERR_70_SUBMSG_3        MIL_TEXT("No valid license found (3)")
#define M_ERR_70_SUBMSG_4        MIL_TEXT("PC clock has been altered")
#define M_ERR_70_SUBMSG_5        NO_SUBMSG
#define M_ERR_70_SUBMSG_6        MIL_TEXT("No valid license found (6)")
#define M_ERR_70_SUBMSG_7        NO_SUBMSG
#define M_ERR_70_SUBMSG_8        NO_SUBMSG
#define M_ERR_70_SUBMSG_9        NO_SUBMSG
 
#define M_J2K_ERROR_3            71L
#define M_ERR_71_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_71_SUBMSG_1        MIL_TEXT("Unsupported progression order.")
#define M_ERR_71_SUBMSG_2        MIL_TEXT("Multi-layer images are not supported.")
#define M_ERR_71_SUBMSG_3        MIL_TEXT("Unsupported compression setting.")
#define M_ERR_71_SUBMSG_4        MIL_TEXT("This marker is not supported by MIL yet.")
#define M_ERR_71_SUBMSG_5        MIL_TEXT("Wavelet type cannot be changed.")
#define M_ERR_71_SUBMSG_6        MIL_TEXT("Mismatched field settings.")
#define M_ERR_71_SUBMSG_7        MIL_TEXT("Not enough user memory to do the operation.")
#define M_ERR_71_SUBMSG_8        MIL_TEXT("Invalid number of decomposition levels.")
#define M_ERR_71_SUBMSG_9        MIL_TEXT("Invalid number of wavelet sub-bands.")
 
#define M_J2K_ERROR_4            72L
#define M_ERR_72_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_72_SUBMSG_1        MIL_TEXT("The target size must be a positive number of bytes.")
#define M_ERR_72_SUBMSG_2        MIL_TEXT("Target size is only allowed in lossy modes.")
#define M_ERR_72_SUBMSG_3        MIL_TEXT("Quantization tables are applicable to lossy buffers only.")
#define M_ERR_72_SUBMSG_4        MIL_TEXT("The Q factor is only valid with lossy buffers.")
#define M_ERR_72_SUBMSG_5        MIL_TEXT("Wrong number of entries in the quantization table.")
#define M_ERR_72_SUBMSG_6        MIL_TEXT("Invalid MIL_ID for the quantization table.")
#define M_ERR_72_SUBMSG_7        MIL_TEXT("The quantization table must be one-band, 32-bit floating-point, one-dimensional, and M_ARRAY.")
#define M_ERR_72_SUBMSG_8        MIL_TEXT("Valid Q factor values are between 1 and 99 (both inclusive).")
#define M_ERR_72_SUBMSG_9        MIL_TEXT("Unexpected number of tile-parts.")
 
#define M_J2K_ERROR_5            73L
#define M_ERR_73_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_73_SUBMSG_1        MIL_TEXT("Corrupted JPEG2000 data.")
#define M_ERR_73_SUBMSG_2        MIL_TEXT("Quantization coefficient out of range.")
#define M_ERR_73_SUBMSG_3        MIL_TEXT("Luminance and chrominance parameters are only allowed for YUV buffers.")
#define M_ERR_73_SUBMSG_4        MIL_TEXT("The number of reserved bytes must be greater than or equal to 0.")
#define M_ERR_73_SUBMSG_5        MIL_TEXT("Tile offsets are out of range.")
#define M_ERR_73_SUBMSG_6        MIL_TEXT("Image offsets are out of range.")
#define M_ERR_73_SUBMSG_7        MIL_TEXT("Only one COC marker by band is allowed.")
#define M_ERR_73_SUBMSG_8        MIL_TEXT("Only one QCC marker by band is allowed.")
#define M_ERR_73_SUBMSG_9        MIL_TEXT("Invalid size bit.")
 
#define M_FUNC_CALL_ERROR        74L
#define M_ERR_74_MSG             MIL_TEXT("Function call error.")
#define M_ERR_74_SUBMSG_1        MIL_TEXT("Calibration not supported on remote systems.")
#define M_ERR_74_SUBMSG_2        MIL_TEXT("Unable to load the User Slave DLL. Please make sure it is in the path.")
#define M_ERR_74_SUBMSG_3        MIL_TEXT("Slave function not found in the DLL.")
#define M_ERR_74_SUBMSG_4        MIL_TEXT("Cannot execute because two MIL objects reside in two different workspaces/platforms and compensation cannot be done.") //TBM MIL 8
#define M_ERR_74_SUBMSG_5        MIL_TEXT("Slave module is not in the user module table.")
#define M_ERR_74_SUBMSG_6        MIL_TEXT("Slave function is not in the user function table.")
#define M_ERR_74_SUBMSG_7        MIL_TEXT("No slave function pointer specified.")
#define M_ERR_74_SUBMSG_8        MIL_TEXT("No slave function in the internal function table.")
#define M_ERR_74_SUBMSG_9        MIL_TEXT("The function table already contains a function pointer.\nCheck that you have not given the same opcode to 2 different functions.")
 
#define M_OPERATION_ERROR_3      75L
#define M_ERR_75_MSG             MIL_TEXT("Operation error.")
#define M_ERR_75_SUBMSG_1        MIL_TEXT("Cannot free internally allocated objects.")
#define M_ERR_75_SUBMSG_2        MIL_TEXT("SystemId and ObjectType are incompatible.") // MthrAlloc
#define M_ERR_75_SUBMSG_3        MIL_TEXT("Thread or event id is not compatible with the control flag specified.") // MthrControl
#define M_ERR_75_SUBMSG_4        MIL_TEXT("Cannot perform operation with this thread or event id.")
#define M_ERR_75_SUBMSG_5        MIL_TEXT("Cannot perform operation on unmapped buffer(s).")
#define M_ERR_75_SUBMSG_6        MIL_TEXT("Cannot map buffers.")
#define M_ERR_75_SUBMSG_7        MIL_TEXT("Buffer must have M_DIRECTX in its format.")
#define M_ERR_75_SUBMSG_8        MIL_TEXT("Cannot map 2 buffers of the same family at the same time.")
#define M_ERR_75_SUBMSG_9        MIL_TEXT("Buffer cannot have child buffers.")
 
#define M_BUF_TRANSFER_ERROR     76L
#define M_ERR_76_MSG             MIL_TEXT("Transfer Error.")
#define M_ERR_76_SUBMSG_1        MIL_TEXT("Unknown transfer function.")
#define M_ERR_76_SUBMSG_2        MIL_TEXT("Transfer method not supported for this transfer function.")
#define M_ERR_76_SUBMSG_3        MIL_TEXT("Transfer cannot be done asynchronously.")
#define M_ERR_76_SUBMSG_4        MIL_TEXT("Scaling not supported by this transfer function.")
#define M_ERR_76_SUBMSG_5        MIL_TEXT("No transfer made.")
#define M_ERR_76_SUBMSG_6        MIL_TEXT("MTX0 transfer only supported on MTX0 buffers.")
#define M_ERR_76_SUBMSG_7        MIL_TEXT("MTX0 not supported in this environment.")
#define M_ERR_76_SUBMSG_8        MIL_TEXT("Illegal null MIL_ID passed to MbufTransfer.")
#define M_ERR_76_SUBMSG_9        MIL_TEXT("Invalid Transfer type.")
 
#define M_DISP_SERVICE_ERROR     77L
#define M_ERR_77_MSG             MIL_TEXT("Display service error.")
#define M_ERR_77_SUBMSG_1        MIL_TEXT("Cannot load MilDisplay DLL.")
#define M_ERR_77_SUBMSG_2        MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_77_SUBMSG_3        MIL_TEXT("Cannot find AppAlloc function in MilDisplay.")
#define M_ERR_77_SUBMSG_4        MIL_TEXT("Cannot find AppFree function in MilDisplay.")
#define M_ERR_77_SUBMSG_5        NO_SUBMSG
#define M_ERR_77_SUBMSG_6        NO_SUBMSG
#define M_ERR_77_SUBMSG_7        NO_SUBMSG
#define M_ERR_77_SUBMSG_8        NO_SUBMSG
#define M_ERR_77_SUBMSG_9        NO_SUBMSG
 
#define M_ALLOC_ERROR_4          78L
#define M_ERR_78_MSG             MIL_TEXT("Allocation error.")
#define M_ERR_78_SUBMSG_1        MIL_TEXT("M_BGR15 and M_BGR16 buffers are not supported.")
#define M_ERR_78_SUBMSG_2        MIL_TEXT("The requested system is not (correctly) installed.")
#define M_ERR_78_SUBMSG_3        MIL_TEXT("Not enough logical address space to map the buffer.")
#define M_ERR_78_SUBMSG_4        MIL_TEXT("Cannot open the DCF.")
#define M_ERR_78_SUBMSG_5        MIL_TEXT("Cannot create a buffer at address 0.")
#define M_ERR_78_SUBMSG_6        MIL_TEXT("Cannot allocate a M_MAPPABLE buffer with the M_DISP attribute.")
#define M_ERR_78_SUBMSG_7        MIL_TEXT("The driver DLL has an invalid format and cannot be loaded.")
#define M_ERR_78_SUBMSG_8        MIL_TEXT("Invalid bits set in the attribute.")
#define M_ERR_78_SUBMSG_9        MIL_TEXT("The M_NO_PARSING control flag is only available to M_COMPRESS buffers.")
 
#define M_SYS_CTRL_INQ_ERROR     79L
#define M_ERR_79_MSG             MIL_TEXT("System Control/Inquire error.")
#define M_ERR_79_SUBMSG_1        MIL_TEXT("Control/Inquire type supported only on the Host system.")
#define M_ERR_79_SUBMSG_2        MIL_TEXT("Default pitch byte must be a power of 2.")
#define M_ERR_79_SUBMSG_3        MIL_TEXT("This Control/Inquire is not supported any more.")
#define M_ERR_79_SUBMSG_4        MIL_TEXT("This Control/Inquire is now a Digitizer Control/Inquire.")
#define M_ERR_79_SUBMSG_5        MIL_TEXT("This Control/Inquire is now a Display Control/Inquire.")
#define M_ERR_79_SUBMSG_6        MIL_TEXT("Controls are not allowed on this system.")
#define M_ERR_79_SUBMSG_7        MIL_TEXT("Cannot call MsysControl with MIL_INT.")
#define M_ERR_79_SUBMSG_8        NO_SUBMSG
#define M_ERR_79_SUBMSG_9        NO_SUBMSG
 
#define M_APP_MODIF_ERROR        80L
#define M_ERR_80_MSG             MIL_TEXT("Swap ID error.")
#define M_ERR_80_SUBMSG_1        MIL_TEXT("This function does not support remote objects.")
#define M_ERR_80_SUBMSG_2        NO_SUBMSG
#define M_ERR_80_SUBMSG_3        NO_SUBMSG
#define M_ERR_80_SUBMSG_4        NO_SUBMSG
#define M_ERR_80_SUBMSG_5        NO_SUBMSG
#define M_ERR_80_SUBMSG_6        NO_SUBMSG
#define M_ERR_80_SUBMSG_7        NO_SUBMSG
#define M_ERR_80_SUBMSG_8        NO_SUBMSG
#define M_ERR_80_SUBMSG_9        NO_SUBMSG
 
#define M_INSTALLATION_ERROR     81L
#define M_ERR_81_MSG             MIL_TEXT("Installation error.")
#define M_ERR_81_SUBMSG_1        MIL_TEXT("Could not find the installation path in the registry.")
#define M_ERR_81_SUBMSG_2        MIL_TEXT("The list of installed boards is corrupted in the registry. Please re-install MIL.")
#define M_ERR_81_SUBMSG_3        NO_SUBMSG
#define M_ERR_81_SUBMSG_4        NO_SUBMSG
#define M_ERR_81_SUBMSG_5        NO_SUBMSG
#define M_ERR_81_SUBMSG_6        NO_SUBMSG
#define M_ERR_81_SUBMSG_7        NO_SUBMSG
#define M_ERR_81_SUBMSG_8        NO_SUBMSG
#define M_ERR_81_SUBMSG_9        NO_SUBMSG
 
#define M_BUF_CTRL_INQ_ERROR     82L
#define M_ERR_82_MSG             MIL_TEXT("Buffer Control/Inquire error.")
#define M_ERR_82_SUBMSG_1        MIL_TEXT("Invalid index of bands.")
#define M_ERR_82_SUBMSG_2        NO_SUBMSG
#define M_ERR_82_SUBMSG_3        NO_SUBMSG
#define M_ERR_82_SUBMSG_4        NO_SUBMSG
#define M_ERR_82_SUBMSG_5        NO_SUBMSG
#define M_ERR_82_SUBMSG_6        NO_SUBMSG
#define M_ERR_82_SUBMSG_7        NO_SUBMSG
#define M_ERR_82_SUBMSG_8        NO_SUBMSG
#define M_ERR_82_SUBMSG_9        NO_SUBMSG
 
#define M_CALL_FPGA_PARAM_ERROR    83L
#define M_ERR_83_MSG             MIL_TEXT("Invalid parameter in user function call.")
#define M_ERR_83_SUBMSG_1        MIL_TEXT("All the MIL IDs need to be allocated on the same system.")
#define M_ERR_83_SUBMSG_2        MIL_TEXT("Only buffer IDs are supported.")
#define M_ERR_83_SUBMSG_3        MIL_TEXT("At least one parameter must be an ID.")
#define M_ERR_83_SUBMSG_4        MIL_TEXT("Cannot execute user functions on the Host system.")
#define M_ERR_83_SUBMSG_5        MIL_TEXT("Too many parameters.")
#define M_ERR_83_SUBMSG_6        NO_SUBMSG
#define M_ERR_83_SUBMSG_7        NO_SUBMSG
#define M_ERR_83_SUBMSG_8        NO_SUBMSG
#define M_ERR_83_SUBMSG_9        NO_SUBMSG
 
#define M_DISP_CTRL_INQ_ERROR    84L
#define M_ERR_84_MSG             MIL_TEXT("Display Control/Inquire error.")
#define M_ERR_84_SUBMSG_1        MIL_TEXT("This Control/Inquire is no longer supported.")
#define M_ERR_84_SUBMSG_2        NO_SUBMSG
#define M_ERR_84_SUBMSG_3        NO_SUBMSG
#define M_ERR_84_SUBMSG_4        NO_SUBMSG
#define M_ERR_84_SUBMSG_5        NO_SUBMSG
#define M_ERR_84_SUBMSG_6        NO_SUBMSG
#define M_ERR_84_SUBMSG_7        NO_SUBMSG
#define M_ERR_84_SUBMSG_8        NO_SUBMSG
#define M_ERR_84_SUBMSG_9        NO_SUBMSG
 
#define M_J2K_ERROR_6            85L
#define M_ERR_85_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_85_SUBMSG_1        MIL_TEXT("Too many tiles.")
#define M_ERR_85_SUBMSG_2        MIL_TEXT("Invalid code block size.")
#define M_ERR_85_SUBMSG_3        MIL_TEXT("Unexpected field delimiter.")
#define M_ERR_85_SUBMSG_4        MIL_TEXT("Video standard not supported.")
#define M_ERR_85_SUBMSG_5        MIL_TEXT("Unknown wavelet and quantization settings.")
#define M_ERR_85_SUBMSG_6        MIL_TEXT("Unknown entropy coder parameters.")
#define M_ERR_85_SUBMSG_7        MIL_TEXT("Code block attributes are truncated.")
#define M_ERR_85_SUBMSG_8        MIL_TEXT("The field is truncated.")
#define M_ERR_85_SUBMSG_9        MIL_TEXT("Invalid JP2 format.")
 
#define M_INVALID_PARAM_ERROR_11 86L
#define M_ERR_86_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_86_SUBMSG_1        MIL_TEXT("Mask buffer must be the same size as the source buffer.")
#define M_ERR_86_SUBMSG_2        MIL_TEXT("Invalid frame rate value.")
#define M_ERR_86_SUBMSG_3        MIL_TEXT("Invalid number of frames.")
#define M_ERR_86_SUBMSG_4        MIL_TEXT("Invalid file format flag.")
#define M_ERR_86_SUBMSG_5        MIL_TEXT("The file name pointer must not be null.")
#define M_ERR_86_SUBMSG_6        MIL_TEXT("The pointer to the array of frames must be null.")
#define M_ERR_86_SUBMSG_7        MIL_TEXT("The pointer to the array of frames must not be null.")
#define M_ERR_86_SUBMSG_8        MIL_TEXT("The number of frames must be 0.")
#define M_ERR_86_SUBMSG_9        MIL_TEXT("Invalid control flag.")
 
#define M_INVALID_PARAM_ERROR_12 87L
#define M_ERR_87_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_87_SUBMSG_1        MIL_TEXT("The start image value must be 0.")
#define M_ERR_87_SUBMSG_2        MIL_TEXT("Invalid start image value.")
#define M_ERR_87_SUBMSG_3        MIL_TEXT("The operation flag must be M_NULL.")
#define M_ERR_87_SUBMSG_4        MIL_TEXT("Invalid operation flag.")
#define M_ERR_87_SUBMSG_5        MIL_TEXT("The system identifier must be M_NULL.")
#define M_ERR_87_SUBMSG_6        MIL_TEXT("Invalid system identifier.")
#define M_ERR_87_SUBMSG_7        MIL_TEXT("Invalid shen filter type.")
#define M_ERR_87_SUBMSG_8        MIL_TEXT("Invalid shen smooth factor range.")
#define M_ERR_87_SUBMSG_9        MIL_TEXT("Invalid deriche filter type.")
 
#define M_INVALID_PARAM_ERROR_13 88L
#define M_ERR_88_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_88_SUBMSG_1        MIL_TEXT("Invalid deriche smooth factor range.")
#define M_ERR_88_SUBMSG_2        MIL_TEXT("Difference between angles must be in the range of 0 - 360 degrees.")
#define M_ERR_88_SUBMSG_3        MIL_TEXT("Invalid array format.")
#define M_ERR_88_SUBMSG_4        MIL_TEXT("This operation requires a child buffer.")
#define M_ERR_88_SUBMSG_5        MIL_TEXT("Cannot move the buffer because it has a child.")
#define M_ERR_88_SUBMSG_6        MIL_TEXT("Cannot resize the buffer because it is selected on a display.")
#define M_ERR_88_SUBMSG_7        MIL_TEXT("Cannot move a compressed buffer.")
#define M_ERR_88_SUBMSG_8        MIL_TEXT("Type and attribute depths do not match.")
#define M_ERR_88_SUBMSG_9        MIL_TEXT("Invalid internal format.")
 
#define M_BUF_TRANSFER_ERROR_2   89L
#define M_ERR_89_MSG             MIL_TEXT("Transfer Error.")
#define M_ERR_89_SUBMSG_1        MIL_TEXT("Source and Destination buffers must belong to the same system.")
#define M_ERR_89_SUBMSG_2        MIL_TEXT("M_DRIVER_METHOD cannot be specified with other methods.")
#define M_ERR_89_SUBMSG_3        MIL_TEXT("Invalid composition source: planar buffer not supported.") 
#define M_ERR_89_SUBMSG_4        MIL_TEXT("Composition only supported on all bands (in source and destination).")
#define M_ERR_89_SUBMSG_5        MIL_TEXT("Composition is only supported with Mono8, Mono16, RGB16, BGR24 and BGR32 buffers.")
#define M_ERR_89_SUBMSG_6        MIL_TEXT("Destination buffer of composition must have the same format as the source buffer.")
#define M_ERR_89_SUBMSG_7        MIL_TEXT("Invalid composition source: yuv buffer not supported.")
#define M_ERR_89_SUBMSG_8        MIL_TEXT("Invalid offset and/or size specified.")
#define M_ERR_89_SUBMSG_9        MIL_TEXT("Float buffer not supported.")
 
#define M_J2K_ERROR_7            90L
#define M_ERR_90_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_90_SUBMSG_1        MIL_TEXT("Precinct size must be a power of two.")
#define M_ERR_90_SUBMSG_2        MIL_TEXT("Only the first resolution can have a precinct size of 1.")
#define M_ERR_90_SUBMSG_3        MIL_TEXT("Precinct size must not exceed 32768.")
#define M_ERR_90_SUBMSG_4        MIL_TEXT("Code block size must be a power of 2.")
#define M_ERR_90_SUBMSG_5        MIL_TEXT("The quantization table must be a one-band, 16 bits unsigned, one-dimensional M_ARRAY.")
#define M_ERR_90_SUBMSG_6        MIL_TEXT("Invalid MIL_ID for the precincts size table.")
#define M_ERR_90_SUBMSG_7        MIL_TEXT("The precincts size table must be a one-band, 16 bits unsigned, one-dimensional M_ARRAY.")
#define M_ERR_90_SUBMSG_8        MIL_TEXT("Expected marker not found.")
#define M_ERR_90_SUBMSG_9        MIL_TEXT("The buffer contains invalid data.")
 
#define M_AUX_SERVICE_ERROR      91L
#define M_ERR_91_MSG             MIL_TEXT("Auxiliary service error.")
#define M_ERR_91_SUBMSG_1        MIL_TEXT("Cannot load MilAux DLL.")
#define M_ERR_91_SUBMSG_2        NO_SUBMSG
#define M_ERR_91_SUBMSG_3        MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_91_SUBMSG_4        MIL_TEXT("Hardware not supported by Auxiliary Service.")
#define M_ERR_91_SUBMSG_5        MIL_TEXT("System not allocated.")
#define M_ERR_91_SUBMSG_6        MIL_TEXT("The computer needs to be rebooted.")
#define M_ERR_91_SUBMSG_7        NO_SUBMSG
#define M_ERR_91_SUBMSG_8        NO_SUBMSG
#define M_ERR_91_SUBMSG_9        NO_SUBMSG
 
#define M_ALLOC_ERROR_5          92L
#define M_ERR_92_MSG             MIL_TEXT("Allocation error.")
#define M_ERR_92_SUBMSG_1        MIL_TEXT("Cannot create a buffer on this MIL_ID, the source buffer does not have a valid host address.")
#define M_ERR_92_SUBMSG_2        MIL_TEXT("Cannot create a buffer on this MIL_ID, the source buffer does not have a valid physical address.")
#define M_ERR_92_SUBMSG_3        MIL_TEXT("Invalid pitch value.")
#define M_ERR_92_SUBMSG_4        MIL_TEXT("Cannot allocate an on-board buffer with the M_MAPPABLE attribute.")
#define M_ERR_92_SUBMSG_5        MIL_TEXT("This system does not support allocations with a non-default pitch.")
#define M_ERR_92_SUBMSG_6        MIL_TEXT("Unable to map the non-paged buffer to a logical address.")
#define M_ERR_92_SUBMSG_7        MIL_TEXT("Unable to allocate digitizer using a non-ansi DCF file name.")
#define M_ERR_92_SUBMSG_8        MIL_TEXT("DirectX version not supported.")
#define M_ERR_92_SUBMSG_9        MIL_TEXT("Unable to allocate shadow for inter-system calls.")
 
#define M_DGPRCSS_WATCHOG_ERROR 302 //This define was given to the user. It is now only available internally.
#define M_RUNTIME_ERROR_1        93L
#define M_ERR_93_MSG             MIL_TEXT("Runtime error.")
#define M_ERR_93_SUBMSG_1        MIL_TEXT("The specified feature is not implemented.")
#define M_ERR_93_SUBMSG_2        NO_SUBMSG
#define M_ERR_93_SUBMSG_3        NO_SUBMSG
#define M_ERR_93_SUBMSG_4        NO_SUBMSG
#define M_ERR_93_SUBMSG_5        NO_SUBMSG
#define M_ERR_93_SUBMSG_6        NO_SUBMSG
#define M_ERR_93_SUBMSG_7        NO_SUBMSG
#define M_ERR_93_SUBMSG_8        NO_SUBMSG
#define M_ERR_93_SUBMSG_9        NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_14 94L
#define M_ERR_94_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_94_SUBMSG_1        MIL_TEXT("If using float buffers, all source and destination buffers must be float.")
#define M_ERR_94_SUBMSG_2        MIL_TEXT("A format must be specified for 3-band 8-bit images.")
#define M_ERR_94_SUBMSG_3        MIL_TEXT("All buffers must have the same SizeX and SizeY.")
#define M_ERR_94_SUBMSG_4        MIL_TEXT("All sources must have the same internal format.")
#define M_ERR_94_SUBMSG_5        MIL_TEXT("All destinations must have the same internal format.")
#define M_ERR_94_SUBMSG_6        MIL_TEXT("All sources must be allocated on the same system.")
#define M_ERR_94_SUBMSG_7        MIL_TEXT("All destinations must be allocated on the same system.")
#define M_ERR_94_SUBMSG_8        MIL_TEXT("Buffers must have at least 2 lines.")
#define M_ERR_94_SUBMSG_9        MIL_TEXT("SrcStartImage must between 0 and SrcImageCount-1.")
 
#define M_BUF_TRANSFER_ERROR_3   95L
#define M_ERR_95_MSG             MIL_TEXT("Transfer Error.")
#define M_ERR_95_SUBMSG_1        MIL_TEXT("Keying color does not correspond to the source data.")
#define M_ERR_95_SUBMSG_2        MIL_TEXT("Invalid band.")
#define M_ERR_95_SUBMSG_3        MIL_TEXT("Functionality is not implemented.")
#define M_ERR_95_SUBMSG_4        MIL_TEXT("Unknown transfer function.")
#define M_ERR_95_SUBMSG_5        MIL_TEXT("Unknown transfer mode.")
#define M_ERR_95_SUBMSG_6        MIL_TEXT("A parameter is invalid.")
#define M_ERR_95_SUBMSG_7        MIL_TEXT("Transfer not supported with the current license.")
#define M_ERR_95_SUBMSG_8        MIL_TEXT("Unable to map a DirectX buffer.")
#define M_ERR_95_SUBMSG_9        MIL_TEXT("All source parameter should be null.")
 
#define M_J2K_ERROR_8            96L
#define M_ERR_96_MSG             MIL_TEXT("JPEG2000 compression error.")
#define M_ERR_96_SUBMSG_1        MIL_TEXT("Unable to allocate memory.")
#define M_ERR_96_SUBMSG_2        MIL_TEXT("The quantization style is only applicable to lossy buffers.")
#define M_ERR_96_SUBMSG_3        MIL_TEXT("EOC marker found in a packet body.")
#define M_ERR_96_SUBMSG_4        MIL_TEXT("The default quantization table identifier is invalid.")
#define M_ERR_96_SUBMSG_5        MIL_TEXT("Invalid operation mode.")
#define M_ERR_96_SUBMSG_6        NO_SUBMSG
#define M_ERR_96_SUBMSG_7        NO_SUBMSG
#define M_ERR_96_SUBMSG_8        NO_SUBMSG
#define M_ERR_96_SUBMSG_9        NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_15 97L
#define M_ERR_97_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_97_SUBMSG_1        MIL_TEXT("Only 8 and 16-bit source buffers are supported.")
#define M_ERR_97_SUBMSG_2        MIL_TEXT("Only 8 and 16-bit destination buffers are supported.")
#define M_ERR_97_SUBMSG_3        MIL_TEXT("All source buffers must be M_FLIP or M_NO_FLIP.")
#define M_ERR_97_SUBMSG_4        MIL_TEXT("All destination buffers must be M_FLIP or M_NO_FLIP.")
#define M_ERR_97_SUBMSG_5        MIL_TEXT("Invalid number of source buffers.")
#define M_ERR_97_SUBMSG_6        MIL_TEXT("Invalid number of destination buffers.")
#define M_ERR_97_SUBMSG_7        MIL_TEXT("M_MOTION_DETECT_REFERENCE_FRAME must be between 0 and M_MOTION_DETECT_NUM_FRAMES - 1 or set to one of the predefined values.")
#define M_ERR_97_SUBMSG_8        MIL_TEXT("ControlFlag cannot be zero.")
#define M_ERR_97_SUBMSG_9        MIL_TEXT("Invalid ControlFlag. Only one type of create is supported.")
 
#define M_INVALID_PARAM_ERROR_16 98L
#define M_ERR_98_MSG             MIL_TEXT("Invalid parameter.")
#define M_ERR_98_SUBMSG_1        MIL_TEXT("Invalid pitch specified.")
#define M_ERR_98_SUBMSG_2        MIL_TEXT("One of the IDs in the list is not a valid event.")
#define M_ERR_98_SUBMSG_3        MIL_TEXT("All events do not belong to the same system type.")
#define M_ERR_98_SUBMSG_4        MIL_TEXT("M_VIDEO_DEVICE_OBJECT cannot be used with something else.")
#define M_ERR_98_SUBMSG_5        MIL_TEXT("Invalid warp parameters.")
#define M_ERR_98_SUBMSG_6        MIL_TEXT("Invalid matrix size. Allowed values are 3 or 4 for SizeX, and 1 or 3 for SizeY.")
#define M_ERR_98_SUBMSG_7        MIL_TEXT("BayerBitShift must be lower than source SizeBit.")
#define M_ERR_98_SUBMSG_8        MIL_TEXT("Workspace already reserved.")
#define M_ERR_98_SUBMSG_9        MIL_TEXT("Invalid version.")
 
#define M_BUF_TRANSFER_ERROR_4   99L
#define M_ERR_99_MSG             MIL_TEXT("Transfer Error.")
#define M_ERR_99_SUBMSG_1        MIL_TEXT("Destination buffer id should be null.")
#define M_ERR_99_SUBMSG_2        MIL_TEXT("The scaling method (type of interpolation) is unknown.")
#define M_ERR_99_SUBMSG_3        MIL_TEXT("The scaling method (type of interpolation) is not supported.")
#define M_ERR_99_SUBMSG_4        MIL_TEXT("M_ALLOW_LARGER_RECT is not compatible with the scaling function.")
#define M_ERR_99_SUBMSG_5        MIL_TEXT("Autoscale is only supported on 32-bit buffers when the buffer is an image.")
#define M_ERR_99_SUBMSG_6        MIL_TEXT("Transfer type is invalid.")
#define M_ERR_99_SUBMSG_7        MIL_TEXT("The source of the autoscale function must be an image.")
#define M_ERR_99_SUBMSG_8        MIL_TEXT("DirectX transfer only supported on DirectX buffers.")
#define M_ERR_99_SUBMSG_9        MIL_TEXT("The DirectX transfer method is not supported in this environment.")
 
#define M_COMPOSITION_ERROR      100L
#define M_ERR_100_MSG            MIL_TEXT("Composition Error.")
#define M_ERR_100_SUBMSG_1       MIL_TEXT("M_BGRX32_COMPOSITION requires 1-band buffers.")
#define M_ERR_100_SUBMSG_2       MIL_TEXT("M_BGRX32_COMPOSITION requires 32-bit buffers.")
#define M_ERR_100_SUBMSG_3       MIL_TEXT("M_BGRX32_COMPOSITION does not accept M_FLOAT buffers.")
#define M_ERR_100_SUBMSG_4       NO_SUBMSG
#define M_ERR_100_SUBMSG_5       NO_SUBMSG
#define M_ERR_100_SUBMSG_6       NO_SUBMSG
#define M_ERR_100_SUBMSG_7       NO_SUBMSG
#define M_ERR_100_SUBMSG_8       NO_SUBMSG
#define M_ERR_100_SUBMSG_9       NO_SUBMSG
 
#define M_JPEG_COMPRESS_ERROR_4  101L
#define M_ERR_101_MSG            MIL_TEXT("JPEG compression error.")
#define M_ERR_101_SUBMSG_1       MIL_TEXT("Field order is only applicable to interlaced buffers.")
#define M_ERR_101_SUBMSG_2       MIL_TEXT("Invalid field order.")
#define M_ERR_101_SUBMSG_3       NO_SUBMSG
#define M_ERR_101_SUBMSG_4       NO_SUBMSG
#define M_ERR_101_SUBMSG_5       NO_SUBMSG
#define M_ERR_101_SUBMSG_6       NO_SUBMSG
#define M_ERR_101_SUBMSG_7       NO_SUBMSG
#define M_ERR_101_SUBMSG_8       NO_SUBMSG
#define M_ERR_101_SUBMSG_9       NO_SUBMSG
 
#define M_OPERATION_ERROR_6      102L
#define M_ERR_102_MSG            MIL_TEXT("Operation error.")
#define M_ERR_102_SUBMSG_1       MIL_TEXT("In place operations are not supported.")
#define M_ERR_102_SUBMSG_2       MIL_TEXT("Cannot free a thread from within the same thread.")
#define M_ERR_102_SUBMSG_3       MIL_TEXT("All parameters must be set in the context before calling the function.")
#define M_ERR_102_SUBMSG_4       MIL_TEXT("The buffer to draw has not been set in the context.")
#define M_ERR_102_SUBMSG_5       MIL_TEXT("MappFileOperation is not supported on Odyssey systems.")
#define M_ERR_102_SUBMSG_6       MIL_TEXT("Buffer is already unmapped.")
#define M_ERR_102_SUBMSG_7       MIL_TEXT("The size array must not be set in this mode.")
#define M_ERR_102_SUBMSG_8       MIL_TEXT("Operation does not support buffers with region.")
#define M_ERR_102_SUBMSG_9       MIL_TEXT("MappFileOperation is not supported on this operating system.")
 
#define M_INVALID_PARAM_ERROR_17 103L
#define M_ERR_103_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_103_SUBMSG_1       MIL_TEXT("Invalid file format flag. Cannot import MPEG4 sequences.")
#define M_ERR_103_SUBMSG_2       MIL_TEXT("Array of ids parameter contains both local and remote ids.")
#define M_ERR_103_SUBMSG_3       MIL_TEXT("InWarpParameter contain invalid coordinates.")
#define M_ERR_103_SUBMSG_4       MIL_TEXT("Cannot convert an internal data structure to 32-bit values.")
#define M_ERR_103_SUBMSG_5       MIL_TEXT("This control cannot be executed on a child buffer.")
#define M_ERR_103_SUBMSG_6       MIL_TEXT("A buffer id must be specified in order to determine the target host.")
#define M_ERR_103_SUBMSG_7       MIL_TEXT("A system id must be specified in order to determine the target host.")
#define M_ERR_103_SUBMSG_8       MIL_TEXT("Objects in array must have the same owner system.")
#define M_ERR_103_SUBMSG_9       MIL_TEXT("Invalid file format flag. Cannot import H264 sequences.")
 
#define M_LICENSING_ERROR_2      104L
#define M_ERR_104_MSG            MIL_TEXT("Licensing error.")
#define M_ERR_104_SUBMSG_1       MIL_TEXT("MIL Lite requires a Matrox Imaging board or a valid license.\nIf a Matrox Imaging board is present, make sure it is correctly installed.")
#define M_ERR_104_SUBMSG_2       MIL_TEXT("If a Matrox Imaging board is present, make sure it is correctly installed.")
#define M_ERR_104_SUBMSG_3       MIL_TEXT("This system requires a license.")
#define M_ERR_104_SUBMSG_4       MIL_TEXT("Your license does not allow JPEG compression.")
#define M_ERR_104_SUBMSG_5       MIL_TEXT("Your license does not allow JPEG2000 compression.")
#define M_ERR_104_SUBMSG_6       MIL_TEXT("Your license does not allow the use of JPEG-compressed sequences.")
#define M_ERR_104_SUBMSG_7       MIL_TEXT("Your license has reached its time limit.")
#define M_ERR_104_SUBMSG_8       MIL_TEXT("Your license does not allow the use of JPEG2000-compressed sequences.")
#define M_ERR_104_SUBMSG_9       MIL_TEXT("Your license does not allow the allocation of this type of object.")
 
#define M_ALLOC_ERROR_6          105L
#define M_ERR_105_MSG            MIL_TEXT("Allocation error.")
#define M_ERR_105_SUBMSG_1       MIL_TEXT("Unable to allocate memory.")
#define M_ERR_105_SUBMSG_2       MIL_TEXT("Cannot allocate temporary buffer.")
#define M_ERR_105_SUBMSG_3       MIL_TEXT("This system is not registered. Make sure the driver is started.")
#define M_ERR_105_SUBMSG_4       MIL_TEXT("Not enough memory for a MIL CE allocation.\nContinuing the application may cause abnormal behavior!")
#define M_ERR_105_SUBMSG_5       MIL_TEXT("Unable to allocate object because it is not of the expected type.")
#if MIL_COMPILE_VERSION < 1060
#define M_ERR_105_SUBMSG_6       MIL_TEXT("The computer has not been rebooted since the last setup ran.")
#else
#define M_ERR_105_SUBMSG_6       MIL_TEXT("The computer needs to be rebooted.")
#endif
#define M_ERR_105_SUBMSG_7       MIL_TEXT("The M_FLIP buffer attribute is no longer supported.")
#define M_ERR_105_SUBMSG_8       MIL_TEXT("Cluster Manager Server not found. Verify settings in MILConfig or in the MappAlloc parameters")
#define M_ERR_105_SUBMSG_9       MIL_TEXT("Error with the Cluster Manager Server handshake.")
 
#define M_FONT_ERROR             106L
#define M_ERR_106_MSG            MIL_TEXT("Font error.")
#define M_ERR_106_SUBMSG_1       MIL_TEXT("Invalid font or font not installed.") 
#define M_ERR_106_SUBMSG_2       MIL_TEXT("Invalid font name.")
#define M_ERR_106_SUBMSG_3       MIL_TEXT("The default fonts do not support all character codes of the text. Please use another font.") 
#define M_ERR_106_SUBMSG_4       MIL_TEXT("The specified fonts do not support all characters of the text. Please use another font.")
#define M_ERR_106_SUBMSG_5       MIL_TEXT("Unable to find a system font that supports all character codes of the text. Please install a suitable font.")
#define M_ERR_106_SUBMSG_6       MIL_TEXT("Your locale environment is not in UTF8.")
#define M_ERR_106_SUBMSG_7       MIL_TEXT("Invalid font size.")
#define M_ERR_106_SUBMSG_8       MIL_TEXT("Invalid font file.")
#define M_ERR_106_SUBMSG_9       MIL_TEXT("Invalid text encoding.")
 
#define M_FORMAT_ERROR           107L
#define M_ERR_107_MSG            MIL_TEXT("Format error.")
#define M_ERR_107_SUBMSG_1       MIL_TEXT("The specified YUV format is only supported for all bands and with a compatible YUV buffer.")
#define M_ERR_107_SUBMSG_2       MIL_TEXT("The specified format is only supported for all bands.")
#define M_ERR_107_SUBMSG_3       NO_SUBMSG
#define M_ERR_107_SUBMSG_4       NO_SUBMSG
#define M_ERR_107_SUBMSG_5       NO_SUBMSG
#define M_ERR_107_SUBMSG_6       NO_SUBMSG
#define M_ERR_107_SUBMSG_7       NO_SUBMSG
#define M_ERR_107_SUBMSG_8       NO_SUBMSG
#define M_ERR_107_SUBMSG_9       NO_SUBMSG
 
#define M_APP_CTRL_INQ_ERROR     108L
#define M_ERR_108_MSG            MIL_TEXT("Application Control/Inquire error.")
#define M_ERR_108_SUBMSG_1       MIL_TEXT("Some display related object(s) were not freed.")
#define M_ERR_108_SUBMSG_2       MIL_TEXT("This control cannot be executed if the video memory usage is disabled.")
#define M_ERR_108_SUBMSG_3       NO_SUBMSG
#define M_ERR_108_SUBMSG_4       NO_SUBMSG
#define M_ERR_108_SUBMSG_5       NO_SUBMSG
#define M_ERR_108_SUBMSG_6       NO_SUBMSG
#define M_ERR_108_SUBMSG_7       NO_SUBMSG
#define M_ERR_108_SUBMSG_8       NO_SUBMSG
#define M_ERR_108_SUBMSG_9       NO_SUBMSG
 
#define M_GRA_OPERATION_ERROR    109L
#define M_ERR_109_MSG            MIL_TEXT("Drawing operation error.")
#define M_ERR_109_SUBMSG_1       MIL_TEXT("Cannot draw in world units in an uncalibrated image.")
#define M_ERR_109_SUBMSG_2       NO_SUBMSG
#define M_ERR_109_SUBMSG_3       MIL_TEXT("Cannot perform this draw operation from an uncalibrated source object.")
#define M_ERR_109_SUBMSG_4       MIL_TEXT("No calibration found to perform this operation.")
#define M_ERR_109_SUBMSG_5       MIL_TEXT("M_GRAPHIC_CONVERSION_MODE set to M_PRESERVE_SHAPE_AVERAGE is not supported for this operation.")
#define M_ERR_109_SUBMSG_6       MIL_TEXT("M_GRAPHIC_CONVERSION_MODE set to M_RESHAPE_FROM_POINTS is not supported for this operation.")
#define M_ERR_109_SUBMSG_7       MIL_TEXT("M_GRAPHIC_CONVERSION_MODE set to M_RESHAPE_FOLLOWING_DISTORTION is not supported for this operation.")
#define M_ERR_109_SUBMSG_8       MIL_TEXT("This operation can only be performed when drawing to a graphic list.")
#define M_ERR_109_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_18 110L
#define M_ERR_110_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_110_SUBMSG_1       MIL_TEXT("Invalid inquire type for this graphic.")
#define M_ERR_110_SUBMSG_2       MIL_TEXT("Invalid LabelOrIndex.")
#define M_ERR_110_SUBMSG_3       MIL_TEXT("Invalid list type.")
#define M_ERR_110_SUBMSG_4       MIL_TEXT("This value cannot be modified.")
#define M_ERR_110_SUBMSG_5       MIL_TEXT("This value cannot be read.")
#define M_ERR_110_SUBMSG_6       MIL_TEXT("Invalid units.")
#define M_ERR_110_SUBMSG_7       MIL_TEXT("Invalid SubIndex.")
#define M_ERR_110_SUBMSG_8       MIL_TEXT("Invalid Number.")
#define M_ERR_110_SUBMSG_9       MIL_TEXT("X2Ptr and Y2Ptr should be M_NULL for M_POLYLINE or M_POLYGON.")
 
#define M_MEM_MAN_INQ_ERROR      111L
#define M_ERR_111_MSG            MIL_TEXT("Memory manager Inquire error.")
#define M_ERR_111_SUBMSG_1       MIL_TEXT("MIL is not using Mtx Memory Manager driver.")
#define M_ERR_111_SUBMSG_2       MIL_TEXT("Cannot get memory manager handle.")
#define M_ERR_111_SUBMSG_3       MIL_TEXT("Cannot get memory manager driver information.")
#define M_ERR_111_SUBMSG_4       NO_SUBMSG
#define M_ERR_111_SUBMSG_5       NO_SUBMSG
#define M_ERR_111_SUBMSG_6       NO_SUBMSG
#define M_ERR_111_SUBMSG_7       NO_SUBMSG
#define M_ERR_111_SUBMSG_8       NO_SUBMSG
#define M_ERR_111_SUBMSG_9       NO_SUBMSG
 
#define M_NO_MEM_ERROR           112L
#define M_ERR_112_MSG            MIL_TEXT("Memory error.")
#define M_ERR_112_SUBMSG_1       MIL_TEXT("Not enough heap memory to continue.")
#define M_ERR_112_SUBMSG_2       NO_SUBMSG
#define M_ERR_112_SUBMSG_3       NO_SUBMSG
#define M_ERR_112_SUBMSG_4       NO_SUBMSG
#define M_ERR_112_SUBMSG_5       NO_SUBMSG
#define M_ERR_112_SUBMSG_6       NO_SUBMSG
#define M_ERR_112_SUBMSG_7       NO_SUBMSG
#define M_ERR_112_SUBMSG_8       NO_SUBMSG
#define M_ERR_112_SUBMSG_9       NO_SUBMSG
 
#define M_GPU_ERROR              113L
#define M_ERR_113_MSG            MIL_TEXT("GPU driver error.")
#define M_ERR_113_SUBMSG_1       MIL_TEXT("DirectX version not supported.")
#define M_ERR_113_SUBMSG_2       MIL_TEXT("Invalid command decoder.")
#define M_ERR_113_SUBMSG_3       MIL_TEXT("MilGPUd3d9.dll DLL cannot be loaded.")
#define M_ERR_113_SUBMSG_4       MIL_TEXT("MilGPUd3d10.dll DLL cannot be loaded.")
#define M_ERR_113_SUBMSG_5       MIL_TEXT("MilGPUd3d11.dll DLL cannot be loaded.")
#define M_ERR_113_SUBMSG_6       MIL_TEXT("GPU system cannot be used in a Windows Service.")
#define M_ERR_113_SUBMSG_7       NO_SUBMSG
#define M_ERR_113_SUBMSG_8       NO_SUBMSG
#define M_ERR_113_SUBMSG_9       NO_SUBMSG
 
#define M_FILE_OPERATION_ERROR   114L
#define M_ERR_114_MSG            MIL_TEXT("File operation error.")
#define M_ERR_114_SUBMSG_1       MIL_TEXT("Source file must be specified.")
#define M_ERR_114_SUBMSG_2       MIL_TEXT("Folder already exists.")
#define M_ERR_114_SUBMSG_3       MIL_TEXT("File does not exist.")
#define M_ERR_114_SUBMSG_4       MIL_TEXT("Could not create folder.")
#define M_ERR_114_SUBMSG_5       MIL_TEXT("Could not delete folder.")
#define M_ERR_114_SUBMSG_6       MIL_TEXT("Folder is not empty.")
#define M_ERR_114_SUBMSG_7       MIL_TEXT("Error executing command.")
#define M_ERR_114_SUBMSG_8       MIL_TEXT("File not found.")
#define M_ERR_114_SUBMSG_9       MIL_TEXT("Permission denied.")
 
#define M_FILE_OPERATION_ERROR_2 115L
#define M_ERR_115_MSG            MIL_TEXT("File operation error.")
#define M_ERR_115_SUBMSG_1       MIL_TEXT("Could not copy file.")
#define M_ERR_115_SUBMSG_2       MIL_TEXT("The command is not a valid executable.")
#define M_ERR_115_SUBMSG_3       MIL_TEXT("The executable must be specified.")
#define M_ERR_115_SUBMSG_4       MIL_TEXT("Destination file must be specified.")
#define M_ERR_115_SUBMSG_5       MIL_TEXT("Source and Destination files must be different.")
#define M_ERR_115_SUBMSG_6       MIL_TEXT("Sharing violation.")
#define M_ERR_115_SUBMSG_7       MIL_TEXT("Name is invalid.")
#define M_ERR_115_SUBMSG_8       MIL_TEXT("No file specified.")
#define M_ERR_115_SUBMSG_9       MIL_TEXT("OperationDataPtr cannot be NULL.")
 
#define M_INVALID_PARAM_ERROR_19 116L
#define M_ERR_116_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_116_SUBMSG_1       MIL_TEXT("The ID of the source buffer can only be M_NULL when preprocessing the context.")
#define M_ERR_116_SUBMSG_2       MIL_TEXT("The ID of the destination buffer can only be M_NULL when preprocessing the context.")
#define M_ERR_116_SUBMSG_3       MIL_TEXT("Inquire type not supported.")
#define M_ERR_116_SUBMSG_4       MIL_TEXT("Control type not supported.")
#define M_ERR_116_SUBMSG_5       MIL_TEXT("Invalid control value.")
#define M_ERR_116_SUBMSG_6       MIL_TEXT("Invalid mode.")
#define M_ERR_116_SUBMSG_7       MIL_TEXT("DeadPixels buffer must be specified.")
#define M_ERR_116_SUBMSG_8       MIL_TEXT("DeadPixels array contain invalid coordinates.")
#define M_ERR_116_SUBMSG_9       MIL_TEXT("Matrix array must be 1 band.")
 
#define M_INVALID_PARAM_ERROR_20 117L
#define M_ERR_117_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_117_SUBMSG_1       MIL_TEXT("All arrays must have the same number of elements.")
#define M_ERR_117_SUBMSG_2       MIL_TEXT("Buffer must be 1 band.")
#define M_ERR_117_SUBMSG_3       MIL_TEXT("Buffer SizeY must be 1.")
#define M_ERR_117_SUBMSG_4       MIL_TEXT("Buffer SizeX must be multiple of 2.")
#define M_ERR_117_SUBMSG_5       MIL_TEXT("Src image size must be greater or equal to DeadPixels size.")
#define M_ERR_117_SUBMSG_6       MIL_TEXT("Dst image size must be greater or equal to DeadPixels size.")
#define M_ERR_117_SUBMSG_7       MIL_TEXT("DeadPixels could not be filled with all non-zero values.")
#define M_ERR_117_SUBMSG_8       MIL_TEXT("Invalid statistic type.")
#define M_ERR_117_SUBMSG_9       MIL_TEXT("SizeX and SizeY must be specified in the context or a source buffer must be passed at the preprocess.")
 
#define M_NULL_PARAMETER          118L
#define M_ERR_118_MSG             MIL_TEXT("Parameter cannot be NULL.")
#define M_ERR_118_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_118_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_118_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_118_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_118_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_118_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_118_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_118_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_118_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_INVALID_PARAM_ERROR_21 119L
#define M_ERR_119_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_119_SUBMSG_1       MIL_TEXT("The affinity mask array pointer cannot be NULL.")
#define M_ERR_119_SUBMSG_2       MIL_TEXT("The affinity mask array must contain at least one valid bit.")
#define M_ERR_119_SUBMSG_3       MIL_TEXT("The value pointer is not used and should be NULL.")
#define M_ERR_119_SUBMSG_4       MIL_TEXT("Context and result must be on the same system.")
#define M_ERR_119_SUBMSG_5       MIL_TEXT("Model must be specified.")
#define M_ERR_119_SUBMSG_6       MIL_TEXT("Mask must be specified.")
#define M_ERR_119_SUBMSG_7       MIL_TEXT("Invalid score type.")
#define M_ERR_119_SUBMSG_8       MIL_TEXT("Model step must be 1 or 2.")
#define M_ERR_119_SUBMSG_9       MIL_TEXT("Invalid max score.")
 
#define M_INVALID_PARAM_ERROR_22 120L
#define M_ERR_120_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_120_SUBMSG_1       MIL_TEXT("Invalid source buffer type.")
#define M_ERR_120_SUBMSG_2       MIL_TEXT("Invalid destination buffer type.")
#define M_ERR_120_SUBMSG_3       MIL_TEXT("Model must be a monochrome image.")
#define M_ERR_120_SUBMSG_4       MIL_TEXT("Invalid model buffer type.")
#define M_ERR_120_SUBMSG_5       MIL_TEXT("Invalid model size.")
#define M_ERR_120_SUBMSG_6       MIL_TEXT("Mask must be a monochrome image.")
#define M_ERR_120_SUBMSG_7       MIL_TEXT("Invalid mask buffer type.")
#define M_ERR_120_SUBMSG_8       MIL_TEXT("Invalid mask size.")
#define M_ERR_120_SUBMSG_9       MIL_TEXT("Invalid center structural element value.")
 
#define M_THRESHOLDS_ERROR       121L
#define M_ERR_121_MSG            MIL_TEXT("External MP thresholds error.")
#define M_ERR_121_SUBMSG_1       MIL_TEXT("Invalid file name.")
#define M_ERR_121_SUBMSG_2       MIL_TEXT("Cannot open file.")
#define M_ERR_121_SUBMSG_3       MIL_TEXT("Bad file format.")
#define M_ERR_121_SUBMSG_4       MIL_TEXT("Invalid threshold identifier.")
#define M_ERR_121_SUBMSG_5       MIL_TEXT("Invalid parameter value.")
#define M_ERR_121_SUBMSG_6       MIL_TEXT("This Control Value is not supported in this version of MIL.")
#define M_ERR_121_SUBMSG_7       MIL_TEXT("Cannot close file.")
#define M_ERR_121_SUBMSG_8       NO_SUBMSG
#define M_ERR_121_SUBMSG_9       NO_SUBMSG
 
#define M_SYS_CONFIG_ERROR       122L
#define M_ERR_122_MSG            MIL_TEXT("Config access error.")
#define M_ERR_122_SUBMSG_1       MIL_TEXT("Could not write to eeprom.")
#define M_ERR_122_SUBMSG_2       MIL_TEXT("Could not read from eeprom.")
#define M_ERR_122_SUBMSG_3       NO_SUBMSG
#define M_ERR_122_SUBMSG_4       NO_SUBMSG
#define M_ERR_122_SUBMSG_5       NO_SUBMSG
#define M_ERR_122_SUBMSG_6       NO_SUBMSG
#define M_ERR_122_SUBMSG_7       NO_SUBMSG
#define M_ERR_122_SUBMSG_8       NO_SUBMSG
#define M_ERR_122_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_23 123L
#define M_ERR_123_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_123_SUBMSG_1       MIL_TEXT("Invalid number of elements. The number of elements should greater or equal to zero.")
#define M_ERR_123_SUBMSG_2       MIL_TEXT("Parameter 2 must be set to M_NULL with this operation.")
#define M_ERR_123_SUBMSG_3       MIL_TEXT("Parameter 2 cannot be M_NULL for this operation as the image buffer does not have any region information.")
#define M_ERR_123_SUBMSG_4       MIL_TEXT("Invalid Application ID.")
#define M_ERR_123_SUBMSG_5       MIL_TEXT("ObjectIdPtr cannot be M_NULL.")
#define M_ERR_123_SUBMSG_6       MIL_TEXT("StreamType must either be M_FILE or M_MEMORY.")
#define M_ERR_123_SUBMSG_7       MIL_TEXT("MemPtrOrFileName must be M_NULL for M_INQUIRE_SIZE_BYTE operation, and must not be M_NULL otherwise.")
#define M_ERR_123_SUBMSG_8       MIL_TEXT("For a M_LOAD or M_RESTORE Operation, Version must be set to M_DEFAULT.")
#define M_ERR_123_SUBMSG_9       MIL_TEXT("This ResultType is not available for this object type.")
 
#define M_SET_REGION_ERROR       124L
#define M_ERR_124_MSG            MIL_TEXT("Region error.")
#define M_ERR_124_SUBMSG_1       MIL_TEXT("Cannot rasterize a graphic list with world input units in an uncalibrated image.")
#define M_ERR_124_SUBMSG_2       MIL_TEXT("Unsupported operation value when using a graphic list as the second parameter.")
#define M_ERR_124_SUBMSG_3       MIL_TEXT("Unsupported operation value when using an image buffer as the second parameter.")
#define M_ERR_124_SUBMSG_4       MIL_TEXT("Unsupported buffer format used as the second parameter.")
#define M_ERR_124_SUBMSG_5       MIL_TEXT("The region buffer must have the same sizes as its owner buffer.")
#define M_ERR_124_SUBMSG_6       MIL_TEXT("Incompatible destination for the buffer region type.")
#define M_ERR_124_SUBMSG_7       MIL_TEXT("Incompatible source and destination regions.")
#define M_ERR_124_SUBMSG_8       MIL_TEXT("Cannot rasterize because a linked region exists in a child with a different calibration.")
#define M_ERR_124_SUBMSG_9       MIL_TEXT("Unsupported region type for this operation.")
 
#define M_OPERATION_ERROR_7      125L
#define M_ERR_125_MSG            MIL_TEXT("Operation error.")
#define M_ERR_125_SUBMSG_1       MIL_TEXT("Error while converting this graphic.")
#define M_ERR_125_SUBMSG_2       MIL_TEXT("Stream does not contain an object of the expected type.")
#define M_ERR_125_SUBMSG_3       MIL_TEXT("Stream is corrupt.")
#define M_ERR_125_SUBMSG_4       MIL_TEXT("Unable to control this object type.")
#define M_ERR_125_SUBMSG_5       MIL_TEXT("Unable to inquire this object type.")
#define M_ERR_125_SUBMSG_6       MIL_TEXT("Unable to get result for this object type.")
#define M_ERR_125_SUBMSG_7       MIL_TEXT("Unable to call MimGet() on this object type.")
#define M_ERR_125_SUBMSG_8       MIL_TEXT("Unable to call MimPut() on this object type.")
#define M_ERR_125_SUBMSG_9       MIL_TEXT("The ControlType is not supported at this time.")
 
#define M_DMIL_MONITOR_ERROR     126L
#define M_ERR_126_MSG            MIL_TEXT("DMILMonitor error.")
#define M_ERR_126_SUBMSG_1       MIL_TEXT("Cannot load DMILMonitor DLL.")
#define M_ERR_126_SUBMSG_2       MIL_TEXT("A non-null cluster node must be specified during MappAlloc to activate the monitoring mode.")
#define M_ERR_126_SUBMSG_3       MIL_TEXT("The port must be set before enabling the connection")
#define M_ERR_126_SUBMSG_4       MIL_TEXT("Cluster Manager Server not found. Verify settings in MILConfig or in the MappAlloc parameters")
#define M_ERR_126_SUBMSG_5       MIL_TEXT("Error with the Cluster Manager Server handshake.")
#define M_ERR_126_SUBMSG_6       MIL_TEXT("Invalid Cluster Manager Server name passed as an argument to MappAlloc.")
#define M_ERR_126_SUBMSG_7       MIL_TEXT("Internal Cluster Manager Server connection error.")
#define M_ERR_126_SUBMSG_8       NO_SUBMSG
#define M_ERR_126_SUBMSG_9       NO_SUBMSG
 
#define M_MP_ERROR               127L
#define M_ERR_127_MSG            MIL_TEXT("MP subsystem error.")
#define M_ERR_127_SUBMSG_1       MIL_TEXT("Unrecognized host hardware configuration.  MP will be disabled.")
#define M_ERR_127_SUBMSG_2       NO_SUBMSG
#define M_ERR_127_SUBMSG_3       NO_SUBMSG
#define M_ERR_127_SUBMSG_4       NO_SUBMSG
#define M_ERR_127_SUBMSG_5       NO_SUBMSG
#define M_ERR_127_SUBMSG_6       NO_SUBMSG
#define M_ERR_127_SUBMSG_7       NO_SUBMSG
#define M_ERR_127_SUBMSG_8       NO_SUBMSG
#define M_ERR_127_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_24 128L
#define M_ERR_128_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_128_SUBMSG_1       MIL_TEXT("This GetType is not supported for this object type.")
#define M_ERR_128_SUBMSG_2       MIL_TEXT("This PutType is not supported for this object type.")
#define M_ERR_128_SUBMSG_3       MIL_TEXT("Cannot use both +M_AVAILABLE and +M_SUPPORTED at the same time.")
#define M_ERR_128_SUBMSG_4       MIL_TEXT("Cannot use both +M_AVAILABLE and +M_DEFAULT at the same time.")
#define M_ERR_128_SUBMSG_5       MIL_TEXT("Only one +M_TYPE_[] flag can be used at a time.")
#define M_ERR_128_SUBMSG_6       MIL_TEXT("+M_SUPPORTED, +M_AVAILABLE or +M_DEFAULT cannot be used with this operation.")
#define M_ERR_128_SUBMSG_7       MIL_TEXT("+M_TYPE_[] flags cannot be used with this operation.")
#define M_ERR_128_SUBMSG_8       MIL_TEXT("Empty arrays are not supported by this PutType.")
#define M_ERR_128_SUBMSG_9       MIL_TEXT("The MIL_ID given as control value cannot be M_NULL.")
 
#define M_OPERATION_ERROR_8      129L
#define M_ERR_129_MSG            MIL_TEXT("Operation error.")
#define M_ERR_129_SUBMSG_1       MIL_TEXT("The InquireType is not supported at this time.")
#define M_ERR_129_SUBMSG_2       MIL_TEXT("The ResultType is not available at this time.")
#define M_ERR_129_SUBMSG_3       MIL_TEXT("The PutType is not supported at this time.")
#define M_ERR_129_SUBMSG_4       MIL_TEXT("The GetType is not supported at this time.")
#define M_ERR_129_SUBMSG_5       MIL_TEXT("Required data is not initialized.")
#define M_ERR_129_SUBMSG_6       MIL_TEXT("Cannot move a child completely outside its parent's limits.")
#define M_ERR_129_SUBMSG_7       MIL_TEXT("A streaming operation failed.")
#define M_ERR_129_SUBMSG_8       MIL_TEXT("No default value is available.")
#define M_ERR_129_SUBMSG_9       MIL_TEXT("When inquiring an array, the output pointer must not be M_NULL.")
 
#define M_OPERATION_ERROR_9      130L
#define M_ERR_130_MSG            MIL_TEXT("Operation error.")
#define M_ERR_130_SUBMSG_1       MIL_TEXT("The value of M_MAX_DISTANCE must be greater or equal to the value of M_MIN_DISTANCE.")
#define M_ERR_130_SUBMSG_2       MIL_TEXT("Dead pixels must have been specified prior to this function call.")
#define M_ERR_130_SUBMSG_3       MIL_TEXT("Unsupported buffer format.")
#define M_ERR_130_SUBMSG_4       MIL_TEXT("Event synchronize timeout occurred.")
#define M_ERR_130_SUBMSG_5       MIL_TEXT("Unexpected internal error.")
#define M_ERR_130_SUBMSG_6       MIL_TEXT("Timeout is not supported.")
#define M_ERR_130_SUBMSG_7       MIL_TEXT("When using M_LOAD, the stream's object type must be the same as the current object type.")
#define M_ERR_130_SUBMSG_8       MIL_TEXT("Unsupported operation on internally allocated objects.")
#define M_ERR_130_SUBMSG_9       MIL_TEXT("Cannot add object to group.")
 
#define M_INVALID_PARAM_ERROR_25 131L
#define M_ERR_131_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_131_SUBMSG_1       MIL_TEXT("Only M_DRAW_LIST objects are accepted.")
#define M_ERR_131_SUBMSG_2       MIL_TEXT("Only lists containing 1 polyline are accepted.")
#define M_ERR_131_SUBMSG_3       MIL_TEXT("The MIL_ID given as control value must be an M_IMAGE.")
#define M_ERR_131_SUBMSG_4       MIL_TEXT("The image buffer given as control value must have the M_PROC attribute.")
#define M_ERR_131_SUBMSG_5       MIL_TEXT("The image buffer given as control value must be 8-bit or 16-bit unsigned.")
#define M_ERR_131_SUBMSG_6       MIL_TEXT("Saturation is not supported with 64-bit integer buffers.")
#define M_ERR_131_SUBMSG_7       MIL_TEXT("Invalid min/max values specified on source buffer.")
#define M_ERR_131_SUBMSG_8       MIL_TEXT("Cannot inquire M_INTERNAL error.")
#define M_ERR_131_SUBMSG_9       MIL_TEXT("InWarpParameter and OutXLutOrCoefId must be of the same type.")
 
#define M_CONNECTION_ERROR       132L
#define M_ERR_132_MSG            MIL_TEXT("Connection error.")
#define M_ERR_132_SUBMSG_1       MIL_TEXT("Cannot open connection.")
#define M_ERR_132_SUBMSG_2       MIL_TEXT("Cannot open connection, already established.")
#define M_ERR_132_SUBMSG_3       MIL_TEXT("Invalid parameter 1. This function requires a remote Application.")
#define M_ERR_132_SUBMSG_4       NO_SUBMSG
#define M_ERR_132_SUBMSG_5       NO_SUBMSG
#define M_ERR_132_SUBMSG_6       NO_SUBMSG
#define M_ERR_132_SUBMSG_7       NO_SUBMSG
#define M_ERR_132_SUBMSG_8       NO_SUBMSG
#define M_ERR_132_SUBMSG_9       NO_SUBMSG
 
#define M_PUBLICATION_ERROR      133L
#define M_ERR_133_MSG            MIL_TEXT("Publication error.")
#define M_ERR_133_SUBMSG_1       MIL_TEXT("This type of object cannot be published.")
#define M_ERR_133_SUBMSG_2       NO_SUBMSG
#define M_ERR_133_SUBMSG_3       NO_SUBMSG
#define M_ERR_133_SUBMSG_4       NO_SUBMSG
#define M_ERR_133_SUBMSG_5       NO_SUBMSG
#define M_ERR_133_SUBMSG_6       NO_SUBMSG
#define M_ERR_133_SUBMSG_7       NO_SUBMSG
#define M_ERR_133_SUBMSG_8       NO_SUBMSG
#define M_ERR_133_SUBMSG_9       NO_SUBMSG
 
#define M_APP_FREE_ERROR_2       134L
#define M_ERR_134_MSG            MIL_TEXT("Application free operation error.")
#define M_ERR_134_SUBMSG_1       MIL_TEXT("Some remote connections have not been closed.")
#define M_ERR_134_SUBMSG_2       MIL_TEXT("Could not free the software grab simulator service.")
#define M_ERR_134_SUBMSG_3       MIL_TEXT("Invalid flag when freeing current application.")
#define M_ERR_134_SUBMSG_4       NO_SUBMSG
#define M_ERR_134_SUBMSG_5       NO_SUBMSG
#define M_ERR_134_SUBMSG_6       NO_SUBMSG
#define M_ERR_134_SUBMSG_7       NO_SUBMSG
#define M_ERR_134_SUBMSG_8       NO_SUBMSG
#define M_ERR_134_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_26 135L
#define M_ERR_135_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_135_SUBMSG_1       MIL_TEXT("When using a graphic list as the draw destination, Param2 must be set to 1.0.")
#define M_ERR_135_SUBMSG_2       MIL_TEXT("A source intensity buffer is not supported when drawing in a graphic list.")
#define M_ERR_135_SUBMSG_3       MIL_TEXT("A graphic context with a zoom or offset is not supported when drawing in an image buffer.")
#define M_ERR_135_SUBMSG_4       MIL_TEXT("Context type is not in supported list.")
#define M_ERR_135_SUBMSG_5       MIL_TEXT("Invalid matrix buffer type.")
#define M_ERR_135_SUBMSG_6       MIL_TEXT("Operation is not supported on subsampled band.")
#define M_ERR_135_SUBMSG_7       MIL_TEXT("The outer radius must be greater than the inner radius.")
#define M_ERR_135_SUBMSG_8       MIL_TEXT("A radius cannot be negative.")
#define M_ERR_135_SUBMSG_9       MIL_TEXT("MaxNumNeighbors must be greater than or equal to 0.")
 
#define M_COMPENSATION_ERROR     136L
#define M_ERR_136_MSG            MIL_TEXT("Compensation error.")
#define M_ERR_136_SUBMSG_1       MIL_TEXT("Parameters not supported by the board.")
#define M_ERR_136_SUBMSG_2       MIL_TEXT("Legacy board is not supported.")
#define M_ERR_136_SUBMSG_3       MIL_TEXT("The selected system does not support regions.")
#define M_ERR_136_SUBMSG_4       NO_SUBMSG
#define M_ERR_136_SUBMSG_5       NO_SUBMSG
#define M_ERR_136_SUBMSG_6       NO_SUBMSG
#define M_ERR_136_SUBMSG_7       NO_SUBMSG
#define M_ERR_136_SUBMSG_8       NO_SUBMSG
#define M_ERR_136_SUBMSG_9       NO_SUBMSG
 
#define M_PNG_ERROR              137L
#define M_ERR_137_MSG            MIL_TEXT("PNG error.")
#define M_ERR_137_SUBMSG_1       MIL_TEXT("Cannot open file.")
#define M_ERR_137_SUBMSG_2       MIL_TEXT("Cannot read file.")
#define M_ERR_137_SUBMSG_3       MIL_TEXT("Cannot write file.")
#define M_ERR_137_SUBMSG_4       MIL_TEXT("Cannot allocate temporary buffer in memory.")
#define M_ERR_137_SUBMSG_5       MIL_TEXT("Invalid PNG file.")
#define M_ERR_137_SUBMSG_6       NO_SUBMSG
#define M_ERR_137_SUBMSG_7       MIL_TEXT("Only 8, 16 BitsPerSample is supported with RGB or RGBA files.")
#define M_ERR_137_SUBMSG_8       MIL_TEXT("Only 1, 8, 16 BitsPerSample supported.")
#define M_ERR_137_SUBMSG_9       MIL_TEXT("Only 1 or 3 SizeBand supported.")
 
#define M_AVI_FILE_ERROR_4       138L
#define M_ERR_138_MSG            MIL_TEXT("AVI file error.")
#define M_ERR_138_SUBMSG_1       MIL_TEXT("No suitable codec found.")
#define M_ERR_138_SUBMSG_2       MIL_TEXT("Cannot load FFmpeg library. Make sure FFmpeg is correctly installed.")
#define M_ERR_138_SUBMSG_3       MIL_TEXT("Unable to load FFmpeg library. Make sure FFmpeg is correctly installed.")
#define M_ERR_138_SUBMSG_4       MIL_TEXT("Cannot decompress frame image.")
#define M_ERR_138_SUBMSG_5       MIL_TEXT("No Video stream found")
#define M_ERR_138_SUBMSG_6       MIL_TEXT("Invalid pixel format.")
#define M_ERR_138_SUBMSG_7       MIL_TEXT("FFmpeg version mismatch. Please install FFmpeg Version 0.8")
#define M_ERR_138_SUBMSG_8       NO_SUBMSG
#define M_ERR_138_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_27 139L
#define M_ERR_139_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_139_SUBMSG_1       MIL_TEXT("Not enough parameters packed for the function.")
#define M_ERR_139_SUBMSG_2       MIL_TEXT("Too many parameters packed for the function.")
#define M_ERR_139_SUBMSG_3       MIL_TEXT("If MaxNumNeighbors is set to 0, ObjectLabelOrIndexArray, ObjectPosXOrDistArray and ObjectPosYArray must be M_NULL.")
#define M_ERR_139_SUBMSG_4       MIL_TEXT("When using M_POINT_AND_DISTANCE, Param1 must be strictly positive.")
#define M_ERR_139_SUBMSG_5       MIL_TEXT("When using M_POINT_AND_DISTANCE, Param2 must be set to M_NULL.")
#define M_ERR_139_SUBMSG_6       MIL_TEXT("When using M_RECTANGLE_SELECTION, ObjectPosXOrDistArray and ObjectPosYArray must be set to M_NULL.")
#define M_ERR_139_SUBMSG_7       MIL_TEXT("When Operation is set to M_RECTANGLE_SELECTION, M_SORT_BY_ASCENDING_DISTANCE cannot be used.")
#define M_ERR_139_SUBMSG_8       MIL_TEXT("When Operation is set to M_RECTANGLE_SELECTION, M_RETURN_DISTANCE and M_RETURN_X cannot be used.")
#define M_ERR_139_SUBMSG_9       MIL_TEXT("ResultOutputUnits cannot be set to M_WORLD because no calibration context is available.")
 
#define M_INVALID_PARAM_ERROR_28 140L
#define M_ERR_140_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_140_SUBMSG_1       MIL_TEXT("ResultOutputUnits cannot be set to M_WORLD because the calibration context is not calibrated.")
#define M_ERR_140_SUBMSG_2       MIL_TEXT("A calibration context is needed because some graphic objects use world units.")
#define M_ERR_140_SUBMSG_3       MIL_TEXT("The given calibration context is not calibrated and is needed for some graphic objects.")
#define M_ERR_140_SUBMSG_4       MIL_TEXT("CondHigh must be greater or equal to CondLow.")
#define M_ERR_140_SUBMSG_5       MIL_TEXT("Invalid LUT size.")
#define M_ERR_140_SUBMSG_6       MIL_TEXT("MgraSymbols() only supports positions as MIL_DOUBLE in this version. Do you have a system with mixed versions?")
#define M_ERR_140_SUBMSG_7       MIL_TEXT("Invalid type of graphic object.")
#define M_ERR_140_SUBMSG_8       MIL_TEXT("Queued results are deprecated. Result pointer cannot be NULL.")
#define M_ERR_140_SUBMSG_9       MIL_TEXT("This graphic object type does not support the ControlType.")
 
#define M_INVALID_PARAM_ERROR_29 141L
#define M_ERR_141_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_141_SUBMSG_1       MIL_TEXT("Parameter 1 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_2       MIL_TEXT("Parameter 2 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_3       MIL_TEXT("Parameter 3 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_4       MIL_TEXT("Parameter 4 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_5       MIL_TEXT("Parameter 5 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_6       MIL_TEXT("Parameter 6 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_7       MIL_TEXT("Parameter 7 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_8       MIL_TEXT("Parameter 8 must be set to M_NULL.")
#define M_ERR_141_SUBMSG_9       MIL_TEXT("Parameter 9 must be set to M_NULL.")
 
#define M_DIRECTX_SERVICE_ERROR  142L
#define M_ERR_142_MSG            MIL_TEXT("DirectX service error.")
#define M_ERR_142_SUBMSG_1       MIL_TEXT("Cannot load MilDirectX DLL.")
#define M_ERR_142_SUBMSG_2       MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_142_SUBMSG_3       MIL_TEXT("Cannot find AppAlloc function in MilDirectX.")
#define M_ERR_142_SUBMSG_4       MIL_TEXT("Cannot find AppFree function in MilDirectX.")
#define M_ERR_142_SUBMSG_5       MIL_TEXT("DirectX is needed, but the DirectX-based Display Service is not installed.")
#define M_ERR_142_SUBMSG_6       NO_SUBMSG
#define M_ERR_142_SUBMSG_7       NO_SUBMSG
#define M_ERR_142_SUBMSG_8       NO_SUBMSG
#define M_ERR_142_SUBMSG_9       NO_SUBMSG
 
#define M_CODEC_ENGINE_SERVICE_ERROR 143L
#define M_ERR_143_MSG            MIL_TEXT("Sequence context error.")
#define M_ERR_143_SUBMSG_1       MIL_TEXT("Cannot load codec engine DLL.")
#define M_ERR_143_SUBMSG_2       MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_143_SUBMSG_3       MIL_TEXT("Cannot initialize requested codec implementation.")
#define M_ERR_143_SUBMSG_4       MIL_TEXT("Failed allocating requested container.")
#define M_ERR_143_SUBMSG_5       MIL_TEXT("Cannot feed buffer, because process is not started.")
#define M_ERR_143_SUBMSG_6       MIL_TEXT("Warning!: Some encoding settings are incompatible. The problematic settings have been modified internally.")
#define M_ERR_143_SUBMSG_7       MIL_TEXT("Invalid context parameters.")
#define M_ERR_143_SUBMSG_8       MIL_TEXT("Failed allocating internal memory.")
#define M_ERR_143_SUBMSG_9       NO_SUBMSG
 
#define M_MISSING_M_DISP_ERROR    144L
#define M_ERR_144_MSG             MIL_TEXT("This function requires the image to have the M_DISP attribute")
#define M_ERR_144_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_144_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_144_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_144_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_144_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_144_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_144_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_144_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_144_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_MISSING_M_PROC_ERROR    145L
#define M_ERR_145_MSG             MIL_TEXT("This function requires the image to have the M_PROC attribute")
#define M_ERR_145_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_145_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_145_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_145_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_145_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_145_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_145_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_145_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_145_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_MISSING_M_GRAB_ERROR    146L
#define M_ERR_146_MSG             MIL_TEXT("This function requires the image to have the M_GRAB attribute")
#define M_ERR_146_SUBMSG_1        MIL_TEXT("Invalid parameter 1.")
#define M_ERR_146_SUBMSG_2        MIL_TEXT("Invalid parameter 2.")
#define M_ERR_146_SUBMSG_3        MIL_TEXT("Invalid parameter 3.")
#define M_ERR_146_SUBMSG_4        MIL_TEXT("Invalid parameter 4.")
#define M_ERR_146_SUBMSG_5        MIL_TEXT("Invalid parameter 5.")
#define M_ERR_146_SUBMSG_6        MIL_TEXT("Invalid parameter 6.")
#define M_ERR_146_SUBMSG_7        MIL_TEXT("Invalid parameter 7.")
#define M_ERR_146_SUBMSG_8        MIL_TEXT("Invalid parameter 8.")
#define M_ERR_146_SUBMSG_9        MIL_TEXT("Invalid parameter 9.")
 
#define M_INVALID_PARAM_ERROR_30 147L
#define M_ERR_147_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_147_SUBMSG_1       MIL_TEXT("Y2Ptr parameter must be null when using M_INFINITE_LINES_A_B_C.")
#define M_ERR_147_SUBMSG_2       MIL_TEXT("X1Ptr and Y1Ptr cannot be null if the number of line is greater than zero.")
#define M_ERR_147_SUBMSG_3       MIL_TEXT("X2Ptr and Y2Ptr cannot be null drawing this type of lines.")
#define M_ERR_147_SUBMSG_4       MIL_TEXT("Cannot pass a M_NULL graphic context except for M_CANCEL.")
#define M_ERR_147_SUBMSG_5       MIL_TEXT("A graphic context with M_INPUT_UNITS set to M_WORLD is not supported for this function.")
#define M_ERR_147_SUBMSG_6       MIL_TEXT("An intensity and/or angle buffer(s) must be specified.")
#define M_ERR_147_SUBMSG_7       MIL_TEXT("Parameter 2 cannot be set to M_NULL for this operation.")
#define M_ERR_147_SUBMSG_8       MIL_TEXT("InsertLocation is not a valid index or label in the destination graphics list.")
#define M_ERR_147_SUBMSG_9       MIL_TEXT("NumberOfGraObjects must not be negative.")
 
#define M_ALLOC_ERROR_7          148L
#define M_ERR_148_MSG            MIL_TEXT("Allocation error.")
#define M_ERR_148_SUBMSG_1       MIL_TEXT("Invalid Cluster Manager Server name passed as an argument to MappAlloc.")
#define M_ERR_148_SUBMSG_2       MIL_TEXT("Internal Cluster Manager Server connection error.")
#define M_ERR_148_SUBMSG_3       MIL_TEXT("Distributed MIL DLL cannot be loaded.")
#define M_ERR_148_SUBMSG_4       MIL_TEXT("Not enough host memory to allocate buffer.\nCannot allocate temporary buffers in memory.")
#define M_ERR_148_SUBMSG_5       MIL_TEXT("Cannot allocate digitizer.\nCannot allocate temporary buffers in memory.")
#define M_ERR_148_SUBMSG_6       MIL_TEXT("Unable to create the compressed buffer using the given data.")
#define M_ERR_148_SUBMSG_7       MIL_TEXT("Invalid reference ID.")
#define M_ERR_148_SUBMSG_8       MIL_TEXT("Cannot allocate object.")
#define M_ERR_148_SUBMSG_9       MIL_TEXT("Digitizer is not compatible with M_3D_SCENE.")
 
#define M_DIG_SERVICE_ERROR      149L
#define M_ERR_149_MSG            MIL_TEXT("Digitizer service error.")
#define M_ERR_149_SUBMSG_1       MIL_TEXT("Cannot load MilDig DLL.")
#define M_ERR_149_SUBMSG_2       MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_149_SUBMSG_3       MIL_TEXT("Cannot find AppAlloc function in MilDig.")
#define M_ERR_149_SUBMSG_4       MIL_TEXT("Cannot find AppFree function in MilDig.")
#define M_ERR_149_SUBMSG_5       NO_SUBMSG
#define M_ERR_149_SUBMSG_6       NO_SUBMSG
#define M_ERR_149_SUBMSG_7       NO_SUBMSG
#define M_ERR_149_SUBMSG_8       NO_SUBMSG
#define M_ERR_149_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_31 150L
#define M_ERR_150_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_150_SUBMSG_1       MIL_TEXT("When NumberOfGraObjects is set to M_ALL, SrcIndexOrLabelArrayPtr must be set to M_NULL.")
#define M_ERR_150_SUBMSG_2       MIL_TEXT("SrcIndexOrLabelArrayPtr must not be set to M_NULL.")
#define M_ERR_150_SUBMSG_3       MIL_TEXT("Invalid index of label in the array SrcIndexOrLabelArrayPtr.")
#define M_ERR_150_SUBMSG_4       MIL_TEXT("When Operation is set to M_MOVE, the same label or index must not appear more than once in the array SrcIndexOrLabelArrayPtr.")
#define M_ERR_150_SUBMSG_5       MIL_TEXT("For inplace move operations, the InsertLocation must not appear in the array SrcIndexOrLabelArrayPtr.")
#define M_ERR_150_SUBMSG_6       MIL_TEXT("Inquire to M_INIT_FLAG is deprecated, please use M_EXTENDED_INIT_FLAG.")
#define M_ERR_150_SUBMSG_7       MIL_TEXT("Invalid ExtremeType. Are you using M_MIN/M_MAX instead of M_MIN_VALUE/M_MAX_VALUE?")
#define M_ERR_150_SUBMSG_8       MIL_TEXT("Invalid InitFlag.")
#define M_ERR_150_SUBMSG_9       MIL_TEXT("Region are not allowed on LUT destination.")
 
#define M_LICENSING_ERROR_3      151L
#define M_ERR_151_MSG            MIL_TEXT("Licensing error.")
#define M_ERR_151_SUBMSG_1       MIL_TEXT("MIL requires a Matrox Imaging board or a valid license.")
#define M_ERR_151_SUBMSG_2       MIL_TEXT("An expired context file is being used. This file is no longer usable.")
#define M_ERR_151_SUBMSG_3       NO_SUBMSG
#define M_ERR_151_SUBMSG_4       NO_SUBMSG
#define M_ERR_151_SUBMSG_5       NO_SUBMSG
#define M_ERR_151_SUBMSG_6       NO_SUBMSG
#define M_ERR_151_SUBMSG_7       NO_SUBMSG
#define M_ERR_151_SUBMSG_8       NO_SUBMSG
#define M_ERR_151_SUBMSG_9       NO_SUBMSG
 
#define M_APP_TRACE_ERROR_1      152L
#define M_ERR_152_MSG            MIL_TEXT("MappTrace error.")
#define M_ERR_152_SUBMSG_1       MIL_TEXT("TraceTag value must be between 0 and 255.")
#define M_ERR_152_SUBMSG_2       MIL_TEXT("Call with M_TRACE_SECTION_END TraceType for this TraceTag doesn't match the last section start.")
#define M_ERR_152_SUBMSG_3       MIL_TEXT("Call with M_TRACE_SECTION_END TraceType must be preceded by a call with M_TRACE_SECTION_START.")
#define M_ERR_152_SUBMSG_4       MIL_TEXT("TraceValue must be M_DEFAULT or a color defined using M_RGB888().")
#define M_ERR_152_SUBMSG_5       NO_SUBMSG
#define M_ERR_152_SUBMSG_6       NO_SUBMSG
#define M_ERR_152_SUBMSG_7       NO_SUBMSG
#define M_ERR_152_SUBMSG_8       NO_SUBMSG
#define M_ERR_152_SUBMSG_9       NO_SUBMSG
 
#define M_SET_REGION_ERROR_2     153L
#define M_ERR_153_MSG            MIL_TEXT("Region error.")
#define M_ERR_153_SUBMSG_1       MIL_TEXT("Cannot change a parent's region from a linked child.")
#define M_ERR_153_SUBMSG_2       MIL_TEXT("The image buffer does not have a parent to link to.")
#define M_ERR_153_SUBMSG_3       MIL_TEXT("Region cannot be set on a YUV buffer with subsampled bands.")
#define M_ERR_153_SUBMSG_4       NO_SUBMSG
#define M_ERR_153_SUBMSG_5       NO_SUBMSG
#define M_ERR_153_SUBMSG_6       NO_SUBMSG
#define M_ERR_153_SUBMSG_7       NO_SUBMSG
#define M_ERR_153_SUBMSG_8       NO_SUBMSG
#define M_ERR_153_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_32 154L
#define M_ERR_154_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_154_SUBMSG_1       MIL_TEXT("Invalid ControlType.")
#define M_ERR_154_SUBMSG_2       MIL_TEXT("Invalid InquireType.")
#define M_ERR_154_SUBMSG_3       MIL_TEXT("Invalid ErrorType.")
#define M_ERR_154_SUBMSG_4       MIL_TEXT("Invalid SystemDescriptor format.")
#define M_ERR_154_SUBMSG_5       MIL_TEXT("Invalid ConnectionDescriptor format.")
#define M_ERR_154_SUBMSG_6       MIL_TEXT("Invalid SequenceType.")
#define M_ERR_154_SUBMSG_7       MIL_TEXT("Invalid SequenceIndex.")
#define M_ERR_154_SUBMSG_8       MIL_TEXT("Invalid ID.")
#define M_ERR_154_SUBMSG_9       MIL_TEXT("The non-paged memory manager is not installed.")
 
#define M_FUNC_CALL_ERROR_2      155L
#define M_ERR_155_MSG            MIL_TEXT("Function call error.")
#define M_ERR_155_SUBMSG_1       MIL_TEXT("Cannot load DLL implementing this function.")
#define M_ERR_155_SUBMSG_2       MIL_TEXT("No module name passed")
#define M_ERR_155_SUBMSG_3       MIL_TEXT("No function name passed")
#define M_ERR_155_SUBMSG_4       MIL_TEXT("Opcode not found in the function table.")
#define M_ERR_155_SUBMSG_5       NO_SUBMSG
#define M_ERR_155_SUBMSG_6       NO_SUBMSG
#define M_ERR_155_SUBMSG_7       NO_SUBMSG
#define M_ERR_155_SUBMSG_8       NO_SUBMSG
#define M_ERR_155_SUBMSG_9       NO_SUBMSG
 
#define M_DIG_ALLOC_ERROR        156L
#define M_ERR_156_MSG            MIL_TEXT("Cannot allocate digitizer.")
#define M_ERR_156_SUBMSG_1       MIL_TEXT("Software emulated grab is not supported on this system.")
#define M_ERR_156_SUBMSG_2       NO_SUBMSG
#define M_ERR_156_SUBMSG_3       NO_SUBMSG
#define M_ERR_156_SUBMSG_4       NO_SUBMSG
#define M_ERR_156_SUBMSG_5       NO_SUBMSG
#define M_ERR_156_SUBMSG_6       NO_SUBMSG
#define M_ERR_156_SUBMSG_7       NO_SUBMSG
#define M_ERR_156_SUBMSG_8       NO_SUBMSG
#define M_ERR_156_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_33 157L
#define M_ERR_157_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_157_SUBMSG_1       MIL_TEXT("Invalid image processing context. Its context type must be an M_WAVELET_TRANSFORM_CUSTOM_CONTEXT.")
#define M_ERR_157_SUBMSG_2       MIL_TEXT("Invalid control flag. Must be set to M_DEFAULT.")
#define M_ERR_157_SUBMSG_3       MIL_TEXT("Invalid filters buffers MIL_ID : they can't all be null.")
#define M_ERR_157_SUBMSG_4       MIL_TEXT("Invalid filters buffers attributes : they all must be M_KERNEL.")
#define M_ERR_157_SUBMSG_5       MIL_TEXT("All the filters buffers types must be 32 + M_FLOAT.")
#define M_ERR_157_SUBMSG_6       MIL_TEXT("All the filters buffers sizes must be the same.")
#define M_ERR_157_SUBMSG_7       MIL_TEXT("The band parameter is invalid.")
#define M_ERR_157_SUBMSG_8       MIL_TEXT("All the filters kernels must have SizeY set to 1.")
#define M_ERR_157_SUBMSG_9       MIL_TEXT("Source and destination buffers must be of the same type and pixel depth.")
 
#define M_WAV_VALIDATION_ERROR   158L
#define M_ERR_158_MSG            MIL_TEXT("Invalid Custom Wavelet.")
#define M_ERR_158_SUBMSG_1       MIL_TEXT("All the custom filters must have the same size.")
#define M_ERR_158_SUBMSG_2       MIL_TEXT("The perfect reconstruction condition is not verified with the used custom wavelet.")
#define M_ERR_158_SUBMSG_3       NO_SUBMSG
#define M_ERR_158_SUBMSG_4       NO_SUBMSG
#define M_ERR_158_SUBMSG_5       NO_SUBMSG
#define M_ERR_158_SUBMSG_6       NO_SUBMSG
#define M_ERR_158_SUBMSG_7       NO_SUBMSG
#define M_ERR_158_SUBMSG_8       NO_SUBMSG
#define M_ERR_158_SUBMSG_9       NO_SUBMSG
 
#define M_WAV_DENOISE_ERROR      159L
#define M_ERR_159_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_159_SUBMSG_1       MIL_TEXT("Invalid wavelet context.")
#define M_ERR_159_SUBMSG_2       MIL_TEXT("Invalid denoising type.")
#define M_ERR_159_SUBMSG_3       MIL_TEXT("NbLevels must be positive.")
#define M_ERR_159_SUBMSG_4       MIL_TEXT("Invalid control flag. Must be set to M_DEFAULT.")
#define M_ERR_159_SUBMSG_5       MIL_TEXT("Invalid parameter 2.")
#define M_ERR_159_SUBMSG_6       MIL_TEXT("Invalid parameter 3.")
#define M_ERR_159_SUBMSG_7       NO_SUBMSG
#define M_ERR_159_SUBMSG_8       NO_SUBMSG
#define M_ERR_159_SUBMSG_9       NO_SUBMSG
 
#define M_WAVE_TRANSFORM_ERROR   160L
#define M_ERR_160_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_160_SUBMSG_1       MIL_TEXT("Invalid wavelet context.")
#define M_ERR_160_SUBMSG_2       MIL_TEXT("Invalid transformation type.")
#define M_ERR_160_SUBMSG_3       MIL_TEXT("NbLevels must be positive.")
#define M_ERR_160_SUBMSG_4       MIL_TEXT("Invalid control flag. Must be set to M_DEFAULT.")
#define M_ERR_160_SUBMSG_5       MIL_TEXT("Invalid parameter 2.")
#define M_ERR_160_SUBMSG_6       MIL_TEXT("Invalid parameter 3.")
#define M_ERR_160_SUBMSG_7       MIL_TEXT("Context and result must be on the same system.")
#define M_ERR_160_SUBMSG_8       MIL_TEXT("The context must be set to M_NULL for the copy operation.")
#define M_ERR_160_SUBMSG_9       MIL_TEXT("The filters of the custom wavelet are not defined. Use MimWaveletSetFilter.")
 
#define M_WAVE_TRANSFORM_COMB    161L
#define M_ERR_161_MSG            MIL_TEXT("Invalid parameter combination.")
#define M_ERR_161_SUBMSG_1       MIL_TEXT("Source and destination can't be both images.")
#define M_ERR_161_SUBMSG_2       MIL_TEXT("NbLevels must be > 0.")
#define M_ERR_161_SUBMSG_3       MIL_TEXT("Invalid transformation type.")
#define M_ERR_161_SUBMSG_4       MIL_TEXT("NbLevels must be 0 or M_DEFAULT.")
#define M_ERR_161_SUBMSG_5       MIL_TEXT("Image size is not compatible with the decomposition level.")
#define M_ERR_161_SUBMSG_6       MIL_TEXT("For the copy of a wavelet result, NbLevels and the number of level in the source wavelet result should be the same.")
#define M_ERR_161_SUBMSG_7       MIL_TEXT("The decomposition level of the source and the destination are not compatible with the transformation type.")
#define M_ERR_161_SUBMSG_8       MIL_TEXT("The wavelet context and the source wavelet result don't match.")
#define M_ERR_161_SUBMSG_9       MIL_TEXT("The source wavelet result is empty.")
 
#define M_MIM_GET_RES_SINGLE     162L
#define M_ERR_162_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_162_SUBMSG_1       MIL_TEXT("This Wavelet result has no quadrants (Nblevels = 0).")
#define M_ERR_162_SUBMSG_2       MIL_TEXT("This Wavelet result doesn't not contain the quadrant you are asking for.")
#define M_ERR_162_SUBMSG_3       MIL_TEXT("This Wavelet has no imaginary decomposition.")
#define M_ERR_162_SUBMSG_4       NO_SUBMSG
#define M_ERR_162_SUBMSG_5       NO_SUBMSG
#define M_ERR_162_SUBMSG_6       NO_SUBMSG
#define M_ERR_162_SUBMSG_7       NO_SUBMSG
#define M_ERR_162_SUBMSG_8       NO_SUBMSG
#define M_ERR_162_SUBMSG_9       NO_SUBMSG
 
#define M_MIM_DRAW_WAVELET       163L
#define M_ERR_163_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_163_SUBMSG_1       MIL_TEXT("This Wavelet has no imaginary decomposition.")
#define M_ERR_163_SUBMSG_2       MIL_TEXT("The drawn image must have the same number of band that the source image used to compute the wavelet result have.")
#define M_ERR_163_SUBMSG_3       MIL_TEXT("The wavelet result is empty.")
#define M_ERR_163_SUBMSG_4       NO_SUBMSG
#define M_ERR_163_SUBMSG_5       NO_SUBMSG
#define M_ERR_163_SUBMSG_6       NO_SUBMSG
#define M_ERR_163_SUBMSG_7       NO_SUBMSG
#define M_ERR_163_SUBMSG_8       NO_SUBMSG
#define M_ERR_163_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_34 164L
#define M_ERR_164_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_164_SUBMSG_1       MIL_TEXT("Cannot create an M_NON_PAGED buffer with null pointers.")
#define M_ERR_164_SUBMSG_2       MIL_TEXT("Can only create a M_NON_PAGED buffer with a physical address.")
#define M_ERR_164_SUBMSG_3       MIL_TEXT("Invalid Command.")
#define M_ERR_164_SUBMSG_4       MIL_TEXT("Invalid CommandFlag.")
#define M_ERR_164_SUBMSG_5       MIL_TEXT("Number of tiles cannot exceed buffer size.")
#define M_ERR_164_SUBMSG_6       MIL_TEXT("Angle value must be between -360 and 720.")
#define M_ERR_164_SUBMSG_7       MIL_TEXT("Invalid path.")
#define M_ERR_164_SUBMSG_8       MIL_TEXT("Operation not supported on 32-bit integral buffers.")
#define M_ERR_164_SUBMSG_9       MIL_TEXT("Calibration not supported on source buffer, consider using a child buffer.")
 
#define M_WAV_DENOISE_COMB       165L
#define M_ERR_165_MSG            MIL_TEXT("Invalid parameter combination.")
#define M_ERR_165_SUBMSG_1       MIL_TEXT("Source and destination must be both images or wavelet results.")
#define M_ERR_165_SUBMSG_2       MIL_TEXT("Wavelet context can't be NULL.")
#define M_ERR_165_SUBMSG_3       MIL_TEXT("NbLevels must be > 0.")
#define M_ERR_165_SUBMSG_4       MIL_TEXT("Image size is not compatible with the decomposition level.")
#define M_ERR_165_SUBMSG_5       MIL_TEXT("Wavelet context must be NULL.")
#define M_ERR_165_SUBMSG_6       MIL_TEXT("NbLevels must be M_DEFAULT.")
#define M_ERR_165_SUBMSG_7       MIL_TEXT("Context and result must be on the same system.")
#define M_ERR_165_SUBMSG_8       MIL_TEXT("The wavelet used for decomposition can't be complex.")
#define M_ERR_165_SUBMSG_9       MIL_TEXT("The source result is empty.")
 
#define M_WAV_DENOISE_COMB2      166L
#define M_ERR_166_MSG            MIL_TEXT("Invalid parameter combination.")
#define M_ERR_166_SUBMSG_1       MIL_TEXT("The wavelet used and the denoising method don't match.")
#define M_ERR_166_SUBMSG_2       NO_SUBMSG
#define M_ERR_166_SUBMSG_3       NO_SUBMSG
#define M_ERR_166_SUBMSG_4       NO_SUBMSG
#define M_ERR_166_SUBMSG_5       NO_SUBMSG
#define M_ERR_166_SUBMSG_6       NO_SUBMSG
#define M_ERR_166_SUBMSG_7       NO_SUBMSG
#define M_ERR_166_SUBMSG_8       NO_SUBMSG
#define M_ERR_166_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_COMB_1       167L
#define M_ERR_167_MSG            MIL_TEXT("Invalid parameter combination.")
#define M_ERR_167_SUBMSG_1       MIL_TEXT("Maximum cannot be inferior to minimum.")
#define M_ERR_167_SUBMSG_2       MIL_TEXT("Second pass parameters and their counterpart cannot have the same values.")
#define M_ERR_167_SUBMSG_3       MIL_TEXT("Source and threshold destination must have the same type.")
#define M_ERR_167_SUBMSG_4       NO_SUBMSG
#define M_ERR_167_SUBMSG_5       NO_SUBMSG
#define M_ERR_167_SUBMSG_6       NO_SUBMSG
#define M_ERR_167_SUBMSG_7       NO_SUBMSG
#define M_ERR_167_SUBMSG_8       NO_SUBMSG
#define M_ERR_167_SUBMSG_9       NO_SUBMSG
 
#define M_SEQUENCE_CONTEXT_WARNING   168L
#define M_ERR_168_MSG            MIL_TEXT("Sequence context warning.")
#define M_ERR_168_SUBMSG_1       MIL_TEXT("Some encoding settings are incompatible. The problematic settings have been modified internally.")
#define M_ERR_168_SUBMSG_2       NO_SUBMSG
#define M_ERR_168_SUBMSG_3       NO_SUBMSG
#define M_ERR_168_SUBMSG_4       NO_SUBMSG
#define M_ERR_168_SUBMSG_5       NO_SUBMSG
#define M_ERR_168_SUBMSG_6       NO_SUBMSG
#define M_ERR_168_SUBMSG_7       NO_SUBMSG
#define M_ERR_168_SUBMSG_8       NO_SUBMSG
#define M_ERR_168_SUBMSG_9       NO_SUBMSG
 
#define M_RUNTIME_ERROR          169L
#define M_ERR_169_MSG            MIL_TEXT("Undefined error")
#define M_ERR_169_SUBMSG_1       MIL_TEXT("Default CAPI error")
#define M_ERR_169_SUBMSG_2       NO_SUBMSG
#define M_ERR_169_SUBMSG_3       NO_SUBMSG
#define M_ERR_169_SUBMSG_4       NO_SUBMSG
#define M_ERR_169_SUBMSG_5       NO_SUBMSG
#define M_ERR_169_SUBMSG_6       NO_SUBMSG
#define M_ERR_169_SUBMSG_7       NO_SUBMSG
#define M_ERR_169_SUBMSG_8       NO_SUBMSG
#define M_ERR_169_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_35 170L
#define M_ERR_170_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_170_SUBMSG_1       MIL_TEXT("Invalid result type.")
#define M_ERR_170_SUBMSG_2       MIL_TEXT("The LUT buffer must have 3 bands.")
#define M_ERR_170_SUBMSG_3       MIL_TEXT("The LUT buffer must be M_UNSIGNED or M_FLOAT.")
#if MIL_COMPILE_VERSION < 1040
#define M_ERR_170_SUBMSG_4       MIL_TEXT("Parameters 3 to 8 must be set to M_DEFAULT.") // moved to M_INVALID_PARAM_ERROR_43 Can reuse after PP4 release
#else
#define M_ERR_170_SUBMSG_4       NO_SUBMSG
#endif
#define M_ERR_170_SUBMSG_5       MIL_TEXT("For compressed buffers, the min value must be 0.")
#define M_ERR_170_SUBMSG_6       MIL_TEXT("For 8-bit JPEG buffers, the max value must be 255.")
#define M_ERR_170_SUBMSG_7       MIL_TEXT("For 16-bit JPEG buffers, the max value must be 65535.")
#define M_ERR_170_SUBMSG_8       MIL_TEXT("For MPEG4 buffers, the max value must be 255.")
#define M_ERR_170_SUBMSG_9       MIL_TEXT("For H264 buffers, the max value must be 255.")
 
#define M_FILE_OPERATION_ERROR_3 171L
#define M_ERR_171_MSG            MIL_TEXT("File operation error.")
#define M_ERR_171_SUBMSG_1       MIL_TEXT("Unsupported operation on this platform.")
#define M_ERR_171_SUBMSG_2       MIL_TEXT("User DLL path is not available.")
#define M_ERR_171_SUBMSG_3       NO_SUBMSG
#define M_ERR_171_SUBMSG_4       NO_SUBMSG
#define M_ERR_171_SUBMSG_5       NO_SUBMSG
#define M_ERR_171_SUBMSG_6       NO_SUBMSG
#define M_ERR_171_SUBMSG_7       NO_SUBMSG
#define M_ERR_171_SUBMSG_8       NO_SUBMSG
#define M_ERR_171_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_INQUIRE        172L
#define M_ERR_172_MSG            MIL_TEXT("Invalid inquire.")
#define M_ERR_172_SUBMSG_1       MIL_TEXT("The pitch is not a multiple of the pixel size. Only M_PITCH_BYTE can be safely used.")
#define M_ERR_172_SUBMSG_2       MIL_TEXT("Unsupported under this OS")
#define M_ERR_172_SUBMSG_3       NO_SUBMSG
#define M_ERR_172_SUBMSG_4       NO_SUBMSG
#define M_ERR_172_SUBMSG_5       NO_SUBMSG
#define M_ERR_172_SUBMSG_6       NO_SUBMSG
#define M_ERR_172_SUBMSG_7       NO_SUBMSG
#define M_ERR_172_SUBMSG_8       NO_SUBMSG
#define M_ERR_172_SUBMSG_9       NO_SUBMSG
 
#define M_MONITORING_ERROR       173L
#define M_ERR_173_MSG            MIL_TEXT("DMIL Monitoring error.")
#define M_ERR_173_SUBMSG_1       MIL_TEXT("Cannot load Milnetworkserver DLL.")
#define M_ERR_173_SUBMSG_2       MIL_TEXT("Function not exported.")
#define M_ERR_173_SUBMSG_3       NO_SUBMSG
#define M_ERR_173_SUBMSG_4       NO_SUBMSG
#define M_ERR_173_SUBMSG_5       NO_SUBMSG
#define M_ERR_173_SUBMSG_6       NO_SUBMSG
#define M_ERR_173_SUBMSG_7       NO_SUBMSG
#define M_ERR_173_SUBMSG_8       NO_SUBMSG
#define M_ERR_173_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_36 174L
#define M_ERR_174_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_174_SUBMSG_1       MIL_TEXT("For 8-bit JPEG2000 buffers, the max value must be 255.")
#define M_ERR_174_SUBMSG_2       MIL_TEXT("For 16-bit JPEG2000 buffers, the max value can only be 511, 1023, 2047, 4095, 8191, 16383, 32767 or 65535.")
#define M_ERR_174_SUBMSG_3       MIL_TEXT("For 8-bit JPEG buffers, the effective size bit must be 8.")
#define M_ERR_174_SUBMSG_4       MIL_TEXT("For 16-bit JPEG buffers, the effective size bit must be 16.")
#define M_ERR_174_SUBMSG_5       MIL_TEXT("For MPEG4 buffers, the effective size bit must be 8.")
#define M_ERR_174_SUBMSG_6       MIL_TEXT("For H264 buffers, the effective size bit must be 8.")
#define M_ERR_174_SUBMSG_7       MIL_TEXT("For 8-bit JPEG2000 buffers, the effective size bit must be 8.")
#define M_ERR_174_SUBMSG_8       MIL_TEXT("For 16-bit JPEG2000 buffers, the effective size bit cannot be less than 9 or greater than 16.")
#define M_ERR_174_SUBMSG_9       MIL_TEXT("Center position at M_DEFAULT are not supported when generating a warp matrix.")
 
#define M_DISPLAY_ERROR2         175L
#define M_ERR_175_MSG            MIL_TEXT("Display error.")
#define M_ERR_175_SUBMSG_1       MIL_TEXT("The display and the LUT must be allocated on the same system.")
#define M_ERR_175_SUBMSG_2       NO_SUBMSG
#define M_ERR_175_SUBMSG_3       NO_SUBMSG
#define M_ERR_175_SUBMSG_4       NO_SUBMSG
#define M_ERR_175_SUBMSG_5       NO_SUBMSG
#define M_ERR_175_SUBMSG_6       NO_SUBMSG
#define M_ERR_175_SUBMSG_7       NO_SUBMSG
#define M_ERR_175_SUBMSG_8       NO_SUBMSG
#define M_ERR_175_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_37 176L
#define M_ERR_176_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_176_SUBMSG_1       MIL_TEXT("Invalid destination Size or Type.")
#define M_ERR_176_SUBMSG_2       MIL_TEXT("M_FILL_DESTINATION is not supported when generating a warp matrix.")
#define M_ERR_176_SUBMSG_3       MIL_TEXT("Destination image must be 32-bit with the same type as the source.")
#define M_ERR_176_SUBMSG_4       MIL_TEXT("Invalid matrix specified.")
#define M_ERR_176_SUBMSG_5       MIL_TEXT("The number of pixels must be greater than 0.")
#define M_ERR_176_SUBMSG_6       MIL_TEXT("Invalid Reference Id")
#define M_ERR_176_SUBMSG_7       MIL_TEXT("Invalid interpolation mode specified.")
#define M_ERR_176_SUBMSG_8       MIL_TEXT("Invalid ObjectType.")
#define M_ERR_176_SUBMSG_9       MIL_TEXT("Unsupported operation flag.")
 
#define M_OPERATION_ERROR_10     177L
#define M_ERR_177_MSG            MIL_TEXT("Operation error.")
#define M_ERR_177_SUBMSG_1       MIL_TEXT("Cannot remove object from group.")
#define M_ERR_177_SUBMSG_2       MIL_TEXT("Message queue is full.")
#define M_ERR_177_SUBMSG_3       MIL_TEXT("Message write failed.")
#define M_ERR_177_SUBMSG_4       MIL_TEXT("Message write timeout.")
#define M_ERR_177_SUBMSG_5       MIL_TEXT("Cannot end update without a previous start.")
#define M_ERR_177_SUBMSG_6       MIL_TEXT("More messages present than the queue size requested.")
#define M_ERR_177_SUBMSG_7       MIL_TEXT("Must specify an user array size.")
#define M_ERR_177_SUBMSG_8       MIL_TEXT("Component ID invalid.")
#define M_ERR_177_SUBMSG_9       MIL_TEXT("Buffer already in another container.")
 
#define M_WEB_ERROR              178L
#define M_ERR_178_MSG            MIL_TEXT("MILWeb Error.")
#define M_ERR_178_SUBMSG_1       MIL_TEXT("Cannot load milwebserver DLL.")
#define M_ERR_178_SUBMSG_2       MIL_TEXT("Function not exported.")
#define M_ERR_178_SUBMSG_3       MIL_TEXT("The port must be set before enabling the connection")
#define M_ERR_178_SUBMSG_4       MIL_TEXT("The connection mode must be set before enabling the connection")
#define M_ERR_178_SUBMSG_5       MIL_TEXT("Object must be published before setting publish mode.")
#define M_ERR_178_SUBMSG_6       MIL_TEXT("Cannot start the websocket server, Listenning port in use.")
#define M_ERR_178_SUBMSG_7       MIL_TEXT("Cannot start the websocket server,")
#define M_ERR_178_SUBMSG_8       MIL_TEXT("Server not started")
#define M_ERR_178_SUBMSG_9       MIL_TEXT("Cannot stop the websocket server,")
 
#define M_INVALID_PARAM_ERROR_38 179L
#define M_ERR_179_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_179_SUBMSG_1       MIL_TEXT("Message size must be positive.")
#define M_ERR_179_SUBMSG_2       MIL_TEXT("Timeout must be positive.")
#define M_ERR_179_SUBMSG_3       MIL_TEXT("Queue size must be greater than 0.")
#define M_ERR_179_SUBMSG_4       MIL_TEXT("Queue full behaviour unsupported.")
#define M_ERR_179_SUBMSG_5       MIL_TEXT("In overwrite mode, queue size must be 1.")
#define M_ERR_179_SUBMSG_6       MIL_TEXT("Control value must be a hook context.")
#define M_ERR_179_SUBMSG_7       MIL_TEXT("Unsupported hook information type.")
#define M_ERR_179_SUBMSG_8       MIL_TEXT("Condition not supported.")
#define M_ERR_179_SUBMSG_9       MIL_TEXT("M_TYPE_STRING is not supported in this case.")
 
#define M_INVALID_PROCESS_ERROR  180L
#define M_ERR_180_MSG            MIL_TEXT("Invalid process")
#define M_ERR_180_SUBMSG_1       MIL_TEXT("Using MIL in a child process after allocating an application in the parent process is unsupported.")
#define M_ERR_180_SUBMSG_2       NO_SUBMSG
#define M_ERR_180_SUBMSG_3       NO_SUBMSG
#define M_ERR_180_SUBMSG_4       NO_SUBMSG
#define M_ERR_180_SUBMSG_5       NO_SUBMSG
#define M_ERR_180_SUBMSG_6       NO_SUBMSG
#define M_ERR_180_SUBMSG_7       NO_SUBMSG
#define M_ERR_180_SUBMSG_8       NO_SUBMSG
#define M_ERR_180_SUBMSG_9       NO_SUBMSG
 
#define M_BUF_TRANSFER_ERROR_5   181L
#define M_ERR_181_MSG            MIL_TEXT("Transfer Error.")
#define M_ERR_181_SUBMSG_1       MIL_TEXT("Cannot clear a specific band in a M_COMPRESS buffer. Must use M_DEFAULT for the DestinationBand parameter.")
#define M_ERR_181_SUBMSG_2       NO_SUBMSG
#define M_ERR_181_SUBMSG_3       NO_SUBMSG
#define M_ERR_181_SUBMSG_4       NO_SUBMSG
#define M_ERR_181_SUBMSG_5       NO_SUBMSG
#define M_ERR_181_SUBMSG_6       NO_SUBMSG
#define M_ERR_181_SUBMSG_7       NO_SUBMSG
#define M_ERR_181_SUBMSG_8       NO_SUBMSG
#define M_ERR_181_SUBMSG_9       NO_SUBMSG
 
#define M_ALLOC_ERROR_8          182L
#define M_ERR_182_MSG            MIL_TEXT("Allocation error.")
#define M_ERR_182_SUBMSG_1       MIL_TEXT("Incompatible Reference ID.")
#define M_ERR_182_SUBMSG_2       MIL_TEXT("Named buffer unsupported.")
#define M_ERR_182_SUBMSG_3       MIL_TEXT("Error while allocating non-paged buffer.")
#define M_ERR_182_SUBMSG_4       MIL_TEXT("Error while creating non-paged buffer.")
#define M_ERR_182_SUBMSG_5       MIL_TEXT("Error while opening a named non-paged buffer.")
#define M_ERR_182_SUBMSG_6       MIL_TEXT("Error while freeing non-paged buffer.")
#define M_ERR_182_SUBMSG_7       MIL_TEXT("Buffer dimension is too large.")
#define M_ERR_182_SUBMSG_8       MIL_TEXT("RLE buffer must be binary.")
#define M_ERR_182_SUBMSG_9       MIL_TEXT("Grab to PFNC buffer unsupported.")
 
#define M_OPERATION_ERROR_11     183L
#define M_ERR_183_MSG            MIL_TEXT("Operation error.")
#define M_ERR_183_SUBMSG_1       MIL_TEXT("Buffer must reside on same system.")
#define M_ERR_183_SUBMSG_2       MIL_TEXT("Buffer has unsupported PFNC value.")
#define M_ERR_183_SUBMSG_3       MIL_TEXT("Added component does not have the correct buffer purpose.")
#define M_ERR_183_SUBMSG_4       MIL_TEXT("Buffer PFNC value unsupported as a destination.")
#define M_ERR_183_SUBMSG_5       MIL_TEXT("Fail to unmap buffer.")
#define M_ERR_183_SUBMSG_6       MIL_TEXT("Not in a hook function.")
#define M_ERR_183_SUBMSG_7       MIL_TEXT("Internal objects are still allocated.")
#define M_ERR_183_SUBMSG_8       MIL_TEXT("Internal buffers are still allocated.")
#define M_ERR_183_SUBMSG_9       MIL_TEXT("Cannot change the label when using M_ALL, it would created non-unique labels.")
 
#define M_CONTAINER_ERROR_1      184L
#define M_ERR_184_MSG            MIL_TEXT("Container error.")
#define M_ERR_184_SUBMSG_1       MIL_TEXT("This system does not support the M_CONTAINER buffer object type.")
#define M_ERR_184_SUBMSG_2       MIL_TEXT("Invalid buffer container type.")
#define M_ERR_184_SUBMSG_3       MIL_TEXT("Software emulated grab does not support container buffer types.")
#define M_ERR_184_SUBMSG_4       MIL_TEXT("Invalid destination image list size. Use M_DEFAULT with container objects.")
#define M_ERR_184_SUBMSG_5       MIL_TEXT("Error copying component(s).")
#define M_ERR_184_SUBMSG_6       MIL_TEXT("Cannot add new component.")
#define M_ERR_184_SUBMSG_7       MIL_TEXT("Component not found.")
#define M_ERR_184_SUBMSG_8       MIL_TEXT("More than one component found.")
#define M_ERR_184_SUBMSG_9       MIL_TEXT("Cannot free a user added component.")
 
#define M_INVALID_PARAM_ERROR_39 185L
#define M_ERR_185_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_185_SUBMSG_1       MIL_TEXT("No buffer found with the provided name.")
#define M_ERR_185_SUBMSG_2       MIL_TEXT("M_DISP not supported on container.")
#define M_ERR_185_SUBMSG_3       MIL_TEXT("Index out of bounds.")
#define M_ERR_185_SUBMSG_4       MIL_TEXT("M_CENTER_X and M_CENTER_Y are not supported for text.")
#define M_ERR_185_SUBMSG_5       MIL_TEXT("Invalid number of images.")
#define M_ERR_185_SUBMSG_6       MIL_TEXT("The value must be a positive divisor of 180.")
#define M_ERR_185_SUBMSG_7       MIL_TEXT("For RLE buffers, the effective size bit must be 1.")
#define M_ERR_185_SUBMSG_8       MIL_TEXT("M_SQUARE_ASPECT_RATIO is not supported for this GraphicType.")
#define M_ERR_185_SUBMSG_9       MIL_TEXT("M_SQUARE_ASPECT_RATIO is not supported for this CreationMode.")
 
#define M_MIL_HOOK_ERROR         186L
#define M_ERR_186_MSG            MIL_TEXT("Hook function error.")
#define M_ERR_186_SUBMSG_1       MIL_TEXT("Invalid object type for EventId")
#define M_ERR_186_SUBMSG_2       NO_SUBMSG
#define M_ERR_186_SUBMSG_3       NO_SUBMSG
#define M_ERR_186_SUBMSG_4       NO_SUBMSG
#define M_ERR_186_SUBMSG_5       NO_SUBMSG
#define M_ERR_186_SUBMSG_6       NO_SUBMSG
#define M_ERR_186_SUBMSG_7       NO_SUBMSG
#define M_ERR_186_SUBMSG_8       NO_SUBMSG
#define M_ERR_186_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_40 187L
#define M_ERR_187_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_187_SUBMSG_1       MIL_TEXT("M_SECTOR is not supported for this GraphicType.")
#define M_ERR_187_SUBMSG_2       MIL_TEXT("M_FILLED is not supported for this GraphicType.")
#define M_ERR_187_SUBMSG_3       MIL_TEXT("M_ROTATE_AROUND_CORNER is not supported for this GraphicType.")
#define M_ERR_187_SUBMSG_4       MIL_TEXT("M_ROTATE_AROUND_CORNER is not supported for this CreationMode.")
#define M_ERR_187_SUBMSG_5       MIL_TEXT("Invalid CreationMode.")
#define M_ERR_187_SUBMSG_6       MIL_TEXT("The number of vectors must be greater than 0.")
#define M_ERR_187_SUBMSG_7       MIL_TEXT("The stride must be greater than 0.")
#define M_ERR_187_SUBMSG_8       MIL_TEXT("The U/V buffers must be monochrome.")
#define M_ERR_187_SUBMSG_9       MIL_TEXT("Format must be set to M_DEFAULT.")
 
#define M_HTTP_SERVICE_ERROR     188L
#define M_ERR_188_MSG            MIL_TEXT("Http Service Error.")
#define M_ERR_188_SUBMSG_1       MIL_TEXT("Cannot load milhttpserver DLL.")
#define M_ERR_188_SUBMSG_2       MIL_TEXT("Function not exported.")
#define M_ERR_188_SUBMSG_3       NO_SUBMSG
#define M_ERR_188_SUBMSG_4       NO_SUBMSG
#define M_ERR_188_SUBMSG_5       NO_SUBMSG
#define M_ERR_188_SUBMSG_6       NO_SUBMSG
#define M_ERR_188_SUBMSG_7       NO_SUBMSG
#define M_ERR_188_SUBMSG_8       NO_SUBMSG
#define M_ERR_188_SUBMSG_9       NO_SUBMSG
 
#define M_BUFFER_TYPE_ERROR      189L
#define M_ERR_189_MSG            MIL_TEXT("Buffer type not supported.")
#define M_ERR_189_SUBMSG_1       MIL_TEXT("Invalid parameter 1.")
#define M_ERR_189_SUBMSG_2       MIL_TEXT("Invalid parameter 2.")
#define M_ERR_189_SUBMSG_3       MIL_TEXT("Invalid parameter 3.")
#define M_ERR_189_SUBMSG_4       MIL_TEXT("Invalid parameter 4.")
#define M_ERR_189_SUBMSG_5       MIL_TEXT("Invalid parameter 5.")
#define M_ERR_189_SUBMSG_6       MIL_TEXT("Invalid parameter 6.")
#define M_ERR_189_SUBMSG_7       MIL_TEXT("Invalid parameter 7.")
#define M_ERR_189_SUBMSG_8       MIL_TEXT("Invalid parameter 8.")
#define M_ERR_189_SUBMSG_9       MIL_TEXT("Invalid parameter 9.")
 
#define M_GRA_OPERATION_ERROR_2  190L
#define M_ERR_190_MSG            MIL_TEXT("Drawing operation error.")
#define M_ERR_190_SUBMSG_1       MIL_TEXT("The U/V buffers must be calibrated because this operation uses world units.")
#define M_ERR_190_SUBMSG_2       MIL_TEXT("The U/V buffers must have the same calibration.")
#define M_ERR_190_SUBMSG_3       NO_SUBMSG
#define M_ERR_190_SUBMSG_4       NO_SUBMSG
#define M_ERR_190_SUBMSG_5       NO_SUBMSG
#define M_ERR_190_SUBMSG_6       NO_SUBMSG
#define M_ERR_190_SUBMSG_7       NO_SUBMSG
#define M_ERR_190_SUBMSG_8       NO_SUBMSG
#define M_ERR_190_SUBMSG_9       NO_SUBMSG
 
#define M_HOOK_ERROR_SPECIFIC     191L
#define M_ERR_191_MSG             MIL_TEXT("Hook function error.")
#define M_ERR_191_SUBMSG_1        MIL_TEXT("No driver information in hook context.")
#define M_ERR_191_SUBMSG_2        MIL_TEXT("Unsupported buffer MIL_ID used.")
#define M_ERR_191_SUBMSG_3        NO_SUBMSG
#define M_ERR_191_SUBMSG_4        NO_SUBMSG
#define M_ERR_191_SUBMSG_5        NO_SUBMSG
#define M_ERR_191_SUBMSG_6        NO_SUBMSG
#define M_ERR_191_SUBMSG_7        NO_SUBMSG
#define M_ERR_191_SUBMSG_8        NO_SUBMSG
#define M_ERR_191_SUBMSG_9        NO_SUBMSG
 
 
#define M_WEB_ERROR_2            192L
#define M_ERR_192_MSG            MIL_TEXT("MILWeb Error.")
#define M_ERR_192_SUBMSG_1       MIL_TEXT("Cannot share instance of websocket server with different port or diffent publish mode.")
#define M_ERR_192_SUBMSG_2       NO_SUBMSG
#define M_ERR_192_SUBMSG_3       NO_SUBMSG
#define M_ERR_192_SUBMSG_4       NO_SUBMSG
#define M_ERR_192_SUBMSG_5       NO_SUBMSG
#define M_ERR_192_SUBMSG_6       NO_SUBMSG
#define M_ERR_192_SUBMSG_7       NO_SUBMSG
#define M_ERR_192_SUBMSG_8       NO_SUBMSG
#define M_ERR_192_SUBMSG_9       NO_SUBMSG
 
#define M_FEATURE_BROWSER_ERROR  193L
#define M_ERR_193_MSG            MIL_TEXT("Feature Browser Error.")
#define M_ERR_193_SUBMSG_1       MIL_TEXT("Could not start the feature browser process. Make sure it is located in the MIL tools folder.")
#define M_ERR_193_SUBMSG_2       NO_SUBMSG
#define M_ERR_193_SUBMSG_3       NO_SUBMSG
#define M_ERR_193_SUBMSG_4       NO_SUBMSG
#define M_ERR_193_SUBMSG_5       NO_SUBMSG
#define M_ERR_193_SUBMSG_6       NO_SUBMSG
#define M_ERR_193_SUBMSG_7       NO_SUBMSG
#define M_ERR_193_SUBMSG_8       NO_SUBMSG
#define M_ERR_193_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_41 194L
#define M_ERR_194_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_194_SUBMSG_1       MIL_TEXT("Invalid inquire type. Cannot combine M_NB_ELEMENTS with M_DEFAULT or M_SUPPORTED.")
#define M_ERR_194_SUBMSG_2       MIL_TEXT("Invalid inquire type: M_NB_ELEMENTS cannot be used with any string inquire type.")
#define M_ERR_194_SUBMSG_3       MIL_TEXT("Invalid result type. Cannot combine M_NB_ELEMENTS with M_DEFAULT or M_AVAILABLE.")
#define M_ERR_194_SUBMSG_4       MIL_TEXT("Invalid result type: M_NB_ELEMENTS cannot be used with any string result type.")
#define M_ERR_194_SUBMSG_5       MIL_TEXT("Invalid SystemNum.") 
#define M_ERR_194_SUBMSG_6       MIL_TEXT("Driver does not support M_DEVICE_NAME.")
#define M_ERR_194_SUBMSG_7       MIL_TEXT("Number of bands must be M_DEFAULT.") 
#define M_ERR_194_SUBMSG_8       MIL_TEXT("Buffer must be dynamic.")
#define M_ERR_194_SUBMSG_9       MIL_TEXT("Invalid number of band offset.")
 
#define M_DATA_AUGMENT_ERROR     195L
#define M_ERR_195_MSG            MIL_TEXT("Data augment error.")
#define M_ERR_195_SUBMSG_1       MIL_TEXT("Invalid minimum and maximum values for range parameters. Minimum is not less than maximum value.")
#define M_ERR_195_SUBMSG_2       MIL_TEXT("Invalid buffer type. Hue|Saturation|Value augmentation operates on color buffers only.")
#define M_ERR_195_SUBMSG_3       MIL_TEXT("Invalid crop mode. Control not available with current crop mode.")
#define M_ERR_195_SUBMSG_4       MIL_TEXT("Cannot inquire M_AUG_RNG_INIT_VALUE before preprocessing the context.")
#define M_ERR_195_SUBMSG_5       MIL_TEXT("Dispatch internal error.")
#define M_ERR_195_SUBMSG_6       MIL_TEXT("Invalid buffer type. Gamma Mode per band operates on color buffers only.")
#define M_ERR_195_SUBMSG_7       MIL_TEXT("Unavailable result. Make sure the associated augmentation has been enabled.")
#define M_ERR_195_SUBMSG_8       MIL_TEXT("Unavailable result image. Make sure you called MimAugment.")
#define M_ERR_195_SUBMSG_9       MIL_TEXT("Invalid Destination ID, should be M_IMAGE or M_AUGMENTATION_RESULT")   
 
#define M_INVALID_PARAM_ERROR_42 196L
#define M_ERR_196_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_196_SUBMSG_1       MIL_TEXT("SystemNum default must be a name.")
#define M_ERR_196_SUBMSG_2       MIL_TEXT("SystemNum default cannot be a name.")
#define M_ERR_196_SUBMSG_3       MIL_TEXT("DigNum default must be a name.")
#define M_ERR_196_SUBMSG_4       MIL_TEXT("DigNum default cannot be a name.")
#define M_ERR_196_SUBMSG_5       MIL_TEXT("Cannot use remote file on local system.")
#define M_ERR_196_SUBMSG_6       MIL_TEXT("Min must be lower or equal to Max.")
#define M_ERR_196_SUBMSG_7       MIL_TEXT("Impossible to go from Min to Max with a k equal to 0.")
#define M_ERR_196_SUBMSG_8       MIL_TEXT("At least one destination must be specified.")
#define M_ERR_196_SUBMSG_9       MIL_TEXT("Destination buffers must have the same number of bands.")
 
#define M_ALLOC_ERROR_9          197L
#define M_ERR_197_MSG            MIL_TEXT("Allocation error.")
#define M_ERR_197_SUBMSG_1       MIL_TEXT("M_PROC or M_DISP not supported for this PFNC value.")
#define M_ERR_197_SUBMSG_2       MIL_TEXT("Incompatible parameters when using M_DYNAMIC.")
#define M_ERR_197_SUBMSG_3       MIL_TEXT("Can only set PFNC for M_IMAGE.")
#define M_ERR_197_SUBMSG_4       NO_SUBMSG
#define M_ERR_197_SUBMSG_5       NO_SUBMSG
#define M_ERR_197_SUBMSG_6       NO_SUBMSG
#define M_ERR_197_SUBMSG_7       NO_SUBMSG
#define M_ERR_197_SUBMSG_8       NO_SUBMSG
#define M_ERR_197_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_43 198L
#define M_ERR_198_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_198_SUBMSG_1       MIL_TEXT("Parameters 3 to 8 must be set to M_DEFAULT.")
#define M_ERR_198_SUBMSG_2       MIL_TEXT("Parameters 3, 5 to 8 must be set to M_DEFAULT.")
#define M_ERR_198_SUBMSG_3       MIL_TEXT("Parameters 4 to 8 must be set to M_DEFAULT.")
#define M_ERR_198_SUBMSG_4       MIL_TEXT("Parameters 5 to 8 must be set to M_DEFAULT.")
#define M_ERR_198_SUBMSG_5       MIL_TEXT("Parameter B must be compatible with provided buffer.")
#define M_ERR_198_SUBMSG_6       MIL_TEXT("Parameter A must be compatible with provided buffer.")
#define M_ERR_198_SUBMSG_7       MIL_TEXT("Parameter 10 not in supported list.")
#define M_ERR_198_SUBMSG_8       MIL_TEXT("Parameters 6 to 8 must be set to M_DEFAULT.")
#define M_ERR_198_SUBMSG_9       MIL_TEXT("Parameter 3 must be smaller than parameter 4.")
 
#define M_INVALID_PARAM_ERROR_44 199L
#define M_ERR_199_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_199_SUBMSG_1       MIL_TEXT("Parameter 6 cannot be set to M_DEFAULT.")
#define M_ERR_199_SUBMSG_2       MIL_TEXT("Invalid component type.")
#define M_ERR_199_SUBMSG_3       MIL_TEXT("Invalid number of components.")
#define M_ERR_199_SUBMSG_4       MIL_TEXT("No pitch control flag used.")
#define M_ERR_199_SUBMSG_5       NO_SUBMSG
#define M_ERR_199_SUBMSG_6       NO_SUBMSG
#define M_ERR_199_SUBMSG_7       NO_SUBMSG
#define M_ERR_199_SUBMSG_8       NO_SUBMSG
#define M_ERR_199_SUBMSG_9       NO_SUBMSG
 
#define M_OPERATION_ERROR_12     56200L
#define M_ERR_200_MSG            MIL_TEXT("Operation error.")
#define M_ERR_200_SUBMSG_1       MIL_TEXT("Operation does not support buffers with M_MODIFY region.")
#define M_ERR_200_SUBMSG_2       NO_SUBMSG
#define M_ERR_200_SUBMSG_3       NO_SUBMSG
#define M_ERR_200_SUBMSG_4       NO_SUBMSG
#define M_ERR_200_SUBMSG_5       NO_SUBMSG
#define M_ERR_200_SUBMSG_6       NO_SUBMSG
#define M_ERR_200_SUBMSG_7       NO_SUBMSG
#define M_ERR_200_SUBMSG_8       NO_SUBMSG
#define M_ERR_200_SUBMSG_9       NO_SUBMSG
 
 
#define M_INVALID_PARAM_ERROR_45 56201L
#define M_ERR_201_MSG            MIL_TEXT("Invalid parameter.")
#define M_ERR_201_SUBMSG_1       MIL_TEXT("Control value must be in [0.5 : 1.0].")
#define M_ERR_201_SUBMSG_2       MIL_TEXT("Control value must be in [0.0 : 1.0].")
#define M_ERR_201_SUBMSG_3       MIL_TEXT("Control value must be in [5 : 15].")
#define M_ERR_201_SUBMSG_4       MIL_TEXT("Control value must be in [0.0 : 16.0].")
#define M_ERR_201_SUBMSG_5       MIL_TEXT("Control value must be in [-MIL_DOUBLE_MAX/2 : MIL_DOUBLE_MAX/2].")
#define M_ERR_201_SUBMSG_6       MIL_TEXT("Control value must be in [0.0 : MIL_DOUBLE_MAX/2].")
#define M_ERR_201_SUBMSG_7       MIL_TEXT("Control value must be >= 0.")
#define M_ERR_201_SUBMSG_8       MIL_TEXT("Control value must be in [0.0 : 100.0].")
#define M_ERR_201_SUBMSG_9       MIL_TEXT("Control value must be in [0 : MIL_INT32_MAX].")
 
 
#define M_SERVICE_3D_ERROR       56202L
#define M_ERR_202_MSG            MIL_TEXT("3D service error.")
#define M_ERR_202_SUBMSG_1       MIL_TEXT("Cannot load Mil3D DLL.")
#define M_ERR_202_SUBMSG_2       MIL_TEXT("Cannot find address of requested function.")
#define M_ERR_202_SUBMSG_3       NO_SUBMSG
#define M_ERR_202_SUBMSG_4       NO_SUBMSG
#define M_ERR_202_SUBMSG_5       NO_SUBMSG
#define M_ERR_202_SUBMSG_6       NO_SUBMSG
#define M_ERR_202_SUBMSG_7       NO_SUBMSG
#define M_ERR_202_SUBMSG_8       NO_SUBMSG
#define M_ERR_202_SUBMSG_9       NO_SUBMSG
 
 
 
#define M_CONTAINER_ERROR_2      56203L
#define M_ERR_203_MSG            MIL_TEXT("Container error.")
#define M_ERR_203_SUBMSG_1       MIL_TEXT("The buffer is already in a container.")
#define M_ERR_203_SUBMSG_2       NO_SUBMSG
#define M_ERR_203_SUBMSG_3       NO_SUBMSG
#define M_ERR_203_SUBMSG_4       NO_SUBMSG
#define M_ERR_203_SUBMSG_5       NO_SUBMSG
#define M_ERR_203_SUBMSG_6       NO_SUBMSG
#define M_ERR_203_SUBMSG_7       NO_SUBMSG
#define M_ERR_203_SUBMSG_8       NO_SUBMSG
#define M_ERR_203_SUBMSG_9       NO_SUBMSG
 
#define M_CHILD_ERROR_2          56204L
#define M_ERR_204_MSG            MIL_TEXT("Child allocation error.")
#define M_ERR_204_SUBMSG_1       MIL_TEXT("Cannot allocate a child on a dynamic buffer.")
#define M_ERR_204_SUBMSG_2       NO_SUBMSG
#define M_ERR_204_SUBMSG_3       NO_SUBMSG
#define M_ERR_204_SUBMSG_4       NO_SUBMSG
#define M_ERR_204_SUBMSG_5       NO_SUBMSG
#define M_ERR_204_SUBMSG_6       NO_SUBMSG
#define M_ERR_204_SUBMSG_7       NO_SUBMSG
#define M_ERR_204_SUBMSG_8       NO_SUBMSG
#define M_ERR_204_SUBMSG_9       NO_SUBMSG
 
#define M_INVALID_PARAM_ERROR_46 56205L
#define M_ERR_205_MSG            NO_SUBMSG
#define M_ERR_205_SUBMSG_1       NO_SUBMSG
#define M_ERR_205_SUBMSG_2       NO_SUBMSG
#define M_ERR_205_SUBMSG_3       MIL_TEXT("Control value must be in [0.0 : 10.0].")
#define M_ERR_205_SUBMSG_4       NO_SUBMSG
#define M_ERR_205_SUBMSG_5       NO_SUBMSG
#define M_ERR_205_SUBMSG_6       NO_SUBMSG
#define M_ERR_205_SUBMSG_7       NO_SUBMSG
#define M_ERR_205_SUBMSG_8       NO_SUBMSG
#define M_ERR_205_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_206       56206L
#define M_ERR_206_MSG            NO_SUBMSG
#define M_ERR_206_SUBMSG_1       NO_SUBMSG
#define M_ERR_206_SUBMSG_2       NO_SUBMSG
#define M_ERR_206_SUBMSG_3       NO_SUBMSG
#define M_ERR_206_SUBMSG_4       NO_SUBMSG
#define M_ERR_206_SUBMSG_5       NO_SUBMSG
#define M_ERR_206_SUBMSG_6       NO_SUBMSG
#define M_ERR_206_SUBMSG_7       NO_SUBMSG
#define M_ERR_206_SUBMSG_8       NO_SUBMSG
#define M_ERR_206_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_207       56207L
#define M_ERR_207_MSG            NO_SUBMSG
#define M_ERR_207_SUBMSG_1       NO_SUBMSG
#define M_ERR_207_SUBMSG_2       NO_SUBMSG
#define M_ERR_207_SUBMSG_3       NO_SUBMSG
#define M_ERR_207_SUBMSG_4       NO_SUBMSG
#define M_ERR_207_SUBMSG_5       NO_SUBMSG
#define M_ERR_207_SUBMSG_6       NO_SUBMSG
#define M_ERR_207_SUBMSG_7       NO_SUBMSG
#define M_ERR_207_SUBMSG_8       NO_SUBMSG
#define M_ERR_207_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_208       56208L
#define M_ERR_208_MSG            NO_SUBMSG
#define M_ERR_208_SUBMSG_1       NO_SUBMSG
#define M_ERR_208_SUBMSG_2       NO_SUBMSG
#define M_ERR_208_SUBMSG_3       NO_SUBMSG
#define M_ERR_208_SUBMSG_4       NO_SUBMSG
#define M_ERR_208_SUBMSG_5       NO_SUBMSG
#define M_ERR_208_SUBMSG_6       NO_SUBMSG
#define M_ERR_208_SUBMSG_7       NO_SUBMSG
#define M_ERR_208_SUBMSG_8       NO_SUBMSG
#define M_ERR_208_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_209       56209L
#define M_ERR_209_MSG            NO_SUBMSG
#define M_ERR_209_SUBMSG_1       NO_SUBMSG
#define M_ERR_209_SUBMSG_2       NO_SUBMSG
#define M_ERR_209_SUBMSG_3       NO_SUBMSG
#define M_ERR_209_SUBMSG_4       NO_SUBMSG
#define M_ERR_209_SUBMSG_5       NO_SUBMSG
#define M_ERR_209_SUBMSG_6       NO_SUBMSG
#define M_ERR_209_SUBMSG_7       NO_SUBMSG
#define M_ERR_209_SUBMSG_8       NO_SUBMSG
#define M_ERR_209_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_210       56210L
#define M_ERR_210_MSG            NO_SUBMSG
#define M_ERR_210_SUBMSG_1       NO_SUBMSG
#define M_ERR_210_SUBMSG_2       NO_SUBMSG
#define M_ERR_210_SUBMSG_3       NO_SUBMSG
#define M_ERR_210_SUBMSG_4       NO_SUBMSG
#define M_ERR_210_SUBMSG_5       NO_SUBMSG
#define M_ERR_210_SUBMSG_6       NO_SUBMSG
#define M_ERR_210_SUBMSG_7       NO_SUBMSG
#define M_ERR_210_SUBMSG_8       NO_SUBMSG
#define M_ERR_210_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_211       56211L
#define M_ERR_211_MSG            NO_SUBMSG
#define M_ERR_211_SUBMSG_1       NO_SUBMSG
#define M_ERR_211_SUBMSG_2       NO_SUBMSG
#define M_ERR_211_SUBMSG_3       NO_SUBMSG
#define M_ERR_211_SUBMSG_4       NO_SUBMSG
#define M_ERR_211_SUBMSG_5       NO_SUBMSG
#define M_ERR_211_SUBMSG_6       NO_SUBMSG
#define M_ERR_211_SUBMSG_7       NO_SUBMSG
#define M_ERR_211_SUBMSG_8       NO_SUBMSG
#define M_ERR_211_SUBMSG_9       NO_SUBMSG
 
 
#define M_UNUSED_ERROR_212       56212L
#define M_ERR_212_MSG            NO_SUBMSG
#define M_ERR_212_SUBMSG_1       NO_SUBMSG
#define M_ERR_212_SUBMSG_2       NO_SUBMSG
#define M_ERR_212_SUBMSG_3       NO_SUBMSG
#define M_ERR_212_SUBMSG_4       NO_SUBMSG
#define M_ERR_212_SUBMSG_5       NO_SUBMSG
#define M_ERR_212_SUBMSG_6       NO_SUBMSG
#define M_ERR_212_SUBMSG_7       NO_SUBMSG
#define M_ERR_212_SUBMSG_8       NO_SUBMSG
#define M_ERR_212_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_213       56213L
#define M_ERR_213_MSG            NO_SUBMSG
#define M_ERR_213_SUBMSG_1       NO_SUBMSG
#define M_ERR_213_SUBMSG_2       NO_SUBMSG
#define M_ERR_213_SUBMSG_3       NO_SUBMSG
#define M_ERR_213_SUBMSG_4       NO_SUBMSG
#define M_ERR_213_SUBMSG_5       NO_SUBMSG
#define M_ERR_213_SUBMSG_6       NO_SUBMSG
#define M_ERR_213_SUBMSG_7       NO_SUBMSG
#define M_ERR_213_SUBMSG_8       NO_SUBMSG
#define M_ERR_213_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_214       56214L
#define M_ERR_214_MSG            NO_SUBMSG
#define M_ERR_214_SUBMSG_1       NO_SUBMSG
#define M_ERR_214_SUBMSG_2       NO_SUBMSG
#define M_ERR_214_SUBMSG_3       NO_SUBMSG
#define M_ERR_214_SUBMSG_4       NO_SUBMSG
#define M_ERR_214_SUBMSG_5       NO_SUBMSG
#define M_ERR_214_SUBMSG_6       NO_SUBMSG
#define M_ERR_214_SUBMSG_7       NO_SUBMSG
#define M_ERR_214_SUBMSG_8       NO_SUBMSG
#define M_ERR_214_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_215       56215L
#define M_ERR_215_MSG            NO_SUBMSG
#define M_ERR_215_SUBMSG_1       NO_SUBMSG
#define M_ERR_215_SUBMSG_2       NO_SUBMSG
#define M_ERR_215_SUBMSG_3       NO_SUBMSG
#define M_ERR_215_SUBMSG_4       NO_SUBMSG
#define M_ERR_215_SUBMSG_5       NO_SUBMSG
#define M_ERR_215_SUBMSG_6       NO_SUBMSG
#define M_ERR_215_SUBMSG_7       NO_SUBMSG
#define M_ERR_215_SUBMSG_8       NO_SUBMSG
#define M_ERR_215_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_216       56216L
#define M_ERR_216_MSG            NO_SUBMSG
#define M_ERR_216_SUBMSG_1       NO_SUBMSG
#define M_ERR_216_SUBMSG_2       NO_SUBMSG
#define M_ERR_216_SUBMSG_3       NO_SUBMSG
#define M_ERR_216_SUBMSG_4       NO_SUBMSG
#define M_ERR_216_SUBMSG_5       NO_SUBMSG
#define M_ERR_216_SUBMSG_6       NO_SUBMSG
#define M_ERR_216_SUBMSG_7       NO_SUBMSG
#define M_ERR_216_SUBMSG_8       NO_SUBMSG
#define M_ERR_216_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_217       56217L
#define M_ERR_217_MSG            NO_SUBMSG
#define M_ERR_217_SUBMSG_1       NO_SUBMSG
#define M_ERR_217_SUBMSG_2       NO_SUBMSG
#define M_ERR_217_SUBMSG_3       NO_SUBMSG
#define M_ERR_217_SUBMSG_4       NO_SUBMSG
#define M_ERR_217_SUBMSG_5       NO_SUBMSG
#define M_ERR_217_SUBMSG_6       NO_SUBMSG
#define M_ERR_217_SUBMSG_7       NO_SUBMSG
#define M_ERR_217_SUBMSG_8       NO_SUBMSG
#define M_ERR_217_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_218       56218L
#define M_ERR_218_MSG            NO_SUBMSG
#define M_ERR_218_SUBMSG_1       NO_SUBMSG
#define M_ERR_218_SUBMSG_2       NO_SUBMSG
#define M_ERR_218_SUBMSG_3       NO_SUBMSG
#define M_ERR_218_SUBMSG_4       NO_SUBMSG
#define M_ERR_218_SUBMSG_5       NO_SUBMSG
#define M_ERR_218_SUBMSG_6       NO_SUBMSG
#define M_ERR_218_SUBMSG_7       NO_SUBMSG
#define M_ERR_218_SUBMSG_8       NO_SUBMSG
#define M_ERR_218_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_219       56219L
#define M_ERR_219_MSG            NO_SUBMSG
#define M_ERR_219_SUBMSG_1       NO_SUBMSG
#define M_ERR_219_SUBMSG_2       NO_SUBMSG
#define M_ERR_219_SUBMSG_3       NO_SUBMSG
#define M_ERR_219_SUBMSG_4       NO_SUBMSG
#define M_ERR_219_SUBMSG_5       NO_SUBMSG
#define M_ERR_219_SUBMSG_6       NO_SUBMSG
#define M_ERR_219_SUBMSG_7       NO_SUBMSG
#define M_ERR_219_SUBMSG_8       NO_SUBMSG
#define M_ERR_219_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_220       56220L
#define M_ERR_220_MSG            NO_SUBMSG
#define M_ERR_220_SUBMSG_1       NO_SUBMSG
#define M_ERR_220_SUBMSG_2       NO_SUBMSG
#define M_ERR_220_SUBMSG_3       NO_SUBMSG
#define M_ERR_220_SUBMSG_4       NO_SUBMSG
#define M_ERR_220_SUBMSG_5       NO_SUBMSG
#define M_ERR_220_SUBMSG_6       NO_SUBMSG
#define M_ERR_220_SUBMSG_7       NO_SUBMSG
#define M_ERR_220_SUBMSG_8       NO_SUBMSG
#define M_ERR_220_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_221       56221L
#define M_ERR_221_MSG            NO_SUBMSG
#define M_ERR_221_SUBMSG_1       NO_SUBMSG
#define M_ERR_221_SUBMSG_2       NO_SUBMSG
#define M_ERR_221_SUBMSG_3       NO_SUBMSG
#define M_ERR_221_SUBMSG_4       NO_SUBMSG
#define M_ERR_221_SUBMSG_5       NO_SUBMSG
#define M_ERR_221_SUBMSG_6       NO_SUBMSG
#define M_ERR_221_SUBMSG_7       NO_SUBMSG
#define M_ERR_221_SUBMSG_8       NO_SUBMSG
#define M_ERR_221_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_222       56222L
#define M_ERR_222_MSG            NO_SUBMSG
#define M_ERR_222_SUBMSG_1       NO_SUBMSG
#define M_ERR_222_SUBMSG_2       NO_SUBMSG
#define M_ERR_222_SUBMSG_3       NO_SUBMSG
#define M_ERR_222_SUBMSG_4       NO_SUBMSG
#define M_ERR_222_SUBMSG_5       NO_SUBMSG
#define M_ERR_222_SUBMSG_6       NO_SUBMSG
#define M_ERR_222_SUBMSG_7       NO_SUBMSG
#define M_ERR_222_SUBMSG_8       NO_SUBMSG
#define M_ERR_222_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_223       56223L
#define M_ERR_223_MSG            NO_SUBMSG
#define M_ERR_223_SUBMSG_1       NO_SUBMSG
#define M_ERR_223_SUBMSG_2       NO_SUBMSG
#define M_ERR_223_SUBMSG_3       NO_SUBMSG
#define M_ERR_223_SUBMSG_4       NO_SUBMSG
#define M_ERR_223_SUBMSG_5       NO_SUBMSG
#define M_ERR_223_SUBMSG_6       NO_SUBMSG
#define M_ERR_223_SUBMSG_7       NO_SUBMSG
#define M_ERR_223_SUBMSG_8       NO_SUBMSG
#define M_ERR_223_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_224       56224L
#define M_ERR_224_MSG            NO_SUBMSG
#define M_ERR_224_SUBMSG_1       NO_SUBMSG
#define M_ERR_224_SUBMSG_2       NO_SUBMSG
#define M_ERR_224_SUBMSG_3       NO_SUBMSG
#define M_ERR_224_SUBMSG_4       NO_SUBMSG
#define M_ERR_224_SUBMSG_5       NO_SUBMSG
#define M_ERR_224_SUBMSG_6       NO_SUBMSG
#define M_ERR_224_SUBMSG_7       NO_SUBMSG
#define M_ERR_224_SUBMSG_8       NO_SUBMSG
#define M_ERR_224_SUBMSG_9       NO_SUBMSG
 
#define M_UNUSED_ERROR_225       56225L
#define M_ERR_225_MSG            NO_SUBMSG
#define M_ERR_225_SUBMSG_1       NO_SUBMSG
#define M_ERR_225_SUBMSG_2       NO_SUBMSG
#define M_ERR_225_SUBMSG_3       NO_SUBMSG
#define M_ERR_225_SUBMSG_4       NO_SUBMSG
#define M_ERR_225_SUBMSG_5       NO_SUBMSG
#define M_ERR_225_SUBMSG_6       NO_SUBMSG
#define M_ERR_225_SUBMSG_7       NO_SUBMSG
#define M_ERR_225_SUBMSG_8       NO_SUBMSG
#define M_ERR_225_SUBMSG_9       NO_SUBMSG
 
 
#define M_LAST_CORE_ERROR        M_UNUSED_ERROR_225
// TO DO when adding a new error message
// Update M_NBERRMSGMAX in mil.h when adding a new error message
// Update osglob.cpp as well
 
#endif