We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ba0b8 commit d975d7cCopy full SHA for d975d7c
1 file changed
log/lazarus/Log.TextFile.pas
@@ -20,6 +20,7 @@ TLog = class(TThread)
20
FSection: string;
21
FValue: string;
22
protected
23
+ procedure doLog;
24
procedure Execute; override;
25
public
26
constructor Create(ASection, AValue, AFileName: string);
@@ -46,7 +47,7 @@ destructor TLog.Destroy;
46
47
inherited Destroy;
48
end;
49
-procedure TLog.Execute;
50
+procedure TLog.doLog;
51
var
52
FLogFile: Text;
53
logdata: string;
@@ -75,6 +76,11 @@ procedure TLog.Execute;
75
76
77
78
79
+procedure TLog.Execute;
80
+begin
81
+ Synchronize(@doLog);
82
+end;
83
+
84
class procedure TLog.Log(ASection, AValue: string; AFileName: string);
85
begin
86
Create(ASection, AValue, AFileName);
0 commit comments