Skip to content
Permalink
Browse files

Silence EAccessViolation in PQfinish() of 32bit libpq.dll . Closes #37

  • Loading branch information...
ansgarbecker committed Mar 30, 2019
1 parent dacc1d7 commit 1f30684745ef6252ba320ea0b953ff4e6668c7f2
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/dbconnection.pas
@@ -2117,7 +2117,11 @@ procedure TPgConnection.SetActive(Value: Boolean);
end;
end;
end else begin
PQfinish(FHandle);
try
PQfinish(FHandle);
except
on E:EAccessViolation do;
end;
FActive := False;
ClearCache(False);
FConnectionStarted := 0;

0 comments on commit 1f30684

Please sign in to comment.
You can’t perform that action at this time.