James Novorita, thank you! I just increased buffer from 1024 to 2048 and programm worked again. Before I got infinite loop.