The import filter for gray indexed bmp files works correctly when using gcc / Linux It does not work correctly when using Visual C++. If I use this compiler I have to comment out line 394/395. if (grey) *temp = cmap[*temp][0]; With this lines commented out it again doesn't work again with gcc / Linux. Can anyone debug this. I couldn't find out where the problem is. An example could be found find here: http://homepages.go.com/homepages/m/a/r/martweb/ti.bmp Martin