I forgot to mention one thing ,actually i'm passing the structure to the thread that trnsfers the file. this structure contains the information about the file.only some part of the structure is received by the thread,but other information is vanishing.I donot know how?