| Subject: | EFCreateError in SaveToFile |
| Posted by: | Reinhard Hagen (reinhard.hag…@at.atb-motors.com) |
| Date: | Thu, 30 Sep 2010 |
Hello,
using RAD Studio 2007 ent. and Windows XP prof. SP3.
What can I do do prevent the exception 'EFCreateError' in the test code
below?
D:\Temp\ is a normal user directory.
List:=TStringList.Create;
for ii := 0 to 1000 do
begin
Windows.Sleep(1000);
List.Add('a'+IntToStr(ii));
List.SaveToFile('D:\Temp\Test.txt'); // --> EFCreateError after a while
end;
List.Free;
Thank you very much for help!
Regards
Reinhard