> after it excute the second if sentence in the first loop, the program > stopped. > Please help me, I have no idea about this error and where the problem > is. Thanks. I am sorry, but I can not help you with problems that I can not reproduce. Get debugger and find out what is going on. Aleksey