mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-17 04:40:18 +08:00
Try to fix a further randomly occurring access violation, probably in conjunction with threads. See http://www.heidisql.com/forum.php?t=8096
This commit is contained in:
@ -4827,10 +4827,13 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
procedure TMainForm.TimerHostUptimeTimer(Sender: TObject);
|
procedure TMainForm.TimerHostUptimeTimer(Sender: TObject);
|
||||||
|
var
|
||||||
|
Conn: TDBConnection;
|
||||||
begin
|
begin
|
||||||
// Display server uptime
|
// Display server uptime
|
||||||
if Assigned(ActiveConnection) then
|
Conn := ActiveConnection;
|
||||||
ShowStatusMsg('Uptime: '+FormatTimeNumber(ActiveConnection.ServerUptime), 4)
|
if Assigned(Conn) then
|
||||||
|
ShowStatusMsg('Uptime: '+FormatTimeNumber(Conn.ServerUptime), 4)
|
||||||
else
|
else
|
||||||
ShowStatusMsg('', 4);
|
ShowStatusMsg('', 4);
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user