Mikhail, I will look into it over weekend. I am afraid I have let things slip in this area as I have been concentrating on Samples/sample2.cpp for the competition. I get the same problem as you do with sample1.cpp - use sample2.cpp while I look into it. John Forrest