Problem with CopyFileW
-
I'm using CopyFileW to copy a temporary downloaded file to proper location. But in a rare scenario, CopyFileW didnt return any error but first 198,324 bytes of 454,086 bytes of destination file was written empty, rest of data is copied properly. This was used on Windows XP. Please tell me where would have gone wrong.
-
I'm using CopyFileW to copy a temporary downloaded file to proper location. But in a rare scenario, CopyFileW didnt return any error but first 198,324 bytes of 454,086 bytes of destination file was written empty, rest of data is copied properly. This was used on Windows XP. Please tell me where would have gone wrong.
-
I'm using CopyFileW to copy a temporary downloaded file to proper location. But in a rare scenario, CopyFileW didnt return any error but first 198,324 bytes of 454,086 bytes of destination file was written empty, rest of data is copied properly. This was used on Windows XP. Please tell me where would have gone wrong.
stanlymt wrote:
...CopyFileW didnt return any error...
Did it return a nonzero value?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Looks like the download was not complete. Start the Copy FileW only after you are shure that the download is complete.
Greetings from Germany
-
stanlymt wrote:
...CopyFileW didnt return any error...
Did it return a nonzero value?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne