I am using FtpOpenFile and InternetWriteFile to send the file to an ftp server. InternetWriteFile function just hangs the entire program when its called. The file size is aroung 5MB. The function hangs when it is called the third time. Can anyone please let me know what needs to be done to resume the program. It doesnt return any error code. It just hangs and i have to kill it through task manager. Please let me know if there is a solution or how to cum across it.