mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 11:42:12 +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);
|
||||
var
|
||||
Conn: TDBConnection;
|
||||
begin
|
||||
// Display server uptime
|
||||
if Assigned(ActiveConnection) then
|
||||
ShowStatusMsg('Uptime: '+FormatTimeNumber(ActiveConnection.ServerUptime), 4)
|
||||
Conn := ActiveConnection;
|
||||
if Assigned(Conn) then
|
||||
ShowStatusMsg('Uptime: '+FormatTimeNumber(Conn.ServerUptime), 4)
|
||||
else
|
||||
ShowStatusMsg('', 4);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user