I save a file with:
ThisImageFile := MyPath + 'MyImage.png';
ImageEnView1.IO.SaveToFile(ThisImageFile);
CopyFile(ThisImageFile, TargetFile);
As you can see from this code, CopyFile needs the source file to exist.
So how can I ensure that right after "ImageEnView1.IO.SaveToFile" the file already exists?
Does "ImageEnView1.IO.SaveToFile" return only after the file already exists?
Or is there a mechanism to wait after "ImageEnView1.IO.SaveToFile" until the file exists?