Skip to content

Commit

Permalink
Issue #57: Prevent more SynEdit paint exceptions if connection was ki…
Browse files Browse the repository at this point in the history
…lled outside.
  • Loading branch information
ansgarbecker committed Jan 19, 2019
1 parent b3c676d commit 09ea936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/main.pas
Expand Up @@ -2682,6 +2682,7 @@ procedure TMainForm.actExecuteQueryExecute(Sender: TObject);


// Start the execution thread // Start the execution thread
Screen.Cursor := crAppStart; Screen.Cursor := crAppStart;
ActiveConnection.Ping(True); // Prevents SynEdit paint exceptions if connection was killed outside
Tab.QueryRunning := True; Tab.QueryRunning := True;
Tab.ExecutionThread := TQueryThread.Create(ActiveConnection, Batch, Tab.Number); Tab.ExecutionThread := TQueryThread.Create(ActiveConnection, Batch, Tab.Number);
end; end;
Expand Down

0 comments on commit 09ea936

Please sign in to comment.