А как в потоке сохранить ЛОГИ?
У меня выдает ошибку
Код:
---------------------------
Debugger Exception Notification
---------------------------
Project 123.exe raised exception class EFCreateError with message 'Cannot create file "C:\Logs\Log.txt". The process cannot access the file because it is being used by another process'.
Код:
procedure TSaveThread.Execute;
begin
Form1.Memo1.PlainText := true;
Form1.Memo1.Lines.SaveToFile('C:\Logs\Log.txt');
end;