mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Crash at exit if log window enabled
This commit is contained in:
parent
14a2c5f266
commit
ddcdf21a70
1 changed files with 11 additions and 8 deletions
17
src/ulog.pas
17
src/ulog.pas
|
|
@ -109,14 +109,17 @@ procedure TLogWriter.WriteInMainThread(Data: PtrInt);
|
|||
var
|
||||
Msg: PLogMessage absolute Data;
|
||||
begin
|
||||
with fMain.frmMain do
|
||||
try
|
||||
if Msg^.Force and (not seLogWindow.Visible) then
|
||||
ShowLogWindow(True);
|
||||
if not Application.Terminated then
|
||||
begin
|
||||
with fMain.frmMain do
|
||||
try
|
||||
if Msg^.Force and (not seLogWindow.Visible) then
|
||||
ShowLogWindow(True);
|
||||
|
||||
seLogWindow.CaretY:= seLogWindow.Lines.AddObject(Msg^.Message, Msg^.ObjectType) + 1;
|
||||
finally
|
||||
Dispose(Msg);
|
||||
seLogWindow.CaretY:= seLogWindow.Lines.AddObject(Msg^.Message, Msg^.ObjectType) + 1;
|
||||
finally
|
||||
Dispose(Msg);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue