Answer the question
In order to leave comments, you need to log in
Why do flash drives burn when copying?
There is a code, the usual one, copies files to a USB flash drive in a cycle. Flash drives ~ 80 pieces. When launched, some "burned out". Everyone is "plugged up" in different ways. Some are irretrievably lost.
The code is a regular loop, with CopyFile without a pause:
for TFilesArrayItem in TFilesArray do begin
...
if not (CopyFile(PWideChar(fromDisk + '\' + TFilesArrayItem.Value.FPlayList), PWideChar(dirName + TFilesArrayItem.key), false)) then begin
...
end;
Answer the question
In order to leave comments, you need to log in
A very strange situation.
I can only speculate on this.
You write data and immediately remove flash drives without the "eject usb media" procedure.
That is, the data is written to the OS buffer and you remove the flash drives before the OS actually writes them to slow flash drives.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question