Permalink
Browse files

Fix EAccessViolation in TSynCustomHighlighter.Next when logging a use…

…r-query in a just reconnected session
  • Loading branch information...
ansgarbecker committed Dec 23, 2018
1 parent 1a380c4 commit eb1b46d5e94b1a1b5cf366833a6110d88cf3877a
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/main.pas
@@ -4754,7 +4754,11 @@ procedure TMainForm.LogSQL(Msg: String; Category: TDBLogCategory=lcInfo; Connect

// Scroll to last line and repaint
SynMemoSQLLog.GotoLineAndCenter(SynMemoSQLLog.Lines.Count);
SynMemoSQLLog.Repaint;
// Causes access violations on a reconnected session firing a user-query:
// SynMemoSQLLog.Repaint;
// SynMemoSQLLog.Update;
// See TDBConnection.Log and TQueryThread.LogFromOutside
// See https://github.com/HeidiSQL/HeidiSQL/issues/57

// Log to file?
if FLogToFile then

0 comments on commit eb1b46d

Please sign in to comment.