Full threadTatyanazaxarova·For find such errors, and many others, I recommend using static code analyzer tools. I suggest to try PVS-Studio :-) http://www.viva64.com/en/pvs-studio/View on HN