with the latest version of uniDac, just recompiling a program that never had this issue, I have an intermittent "connection is not connected" error message closing a form. Same identical form with previous version was ok.
Database: PostgreSQL 9.5.4
Delphi 10.1 Berlin
UniDAC 6.4.14
This is the code I use on the formclose event.
Code: Select all
for N := 0 to ComponentCount - 1 do
begin
C := Components[N];
if C is TUniQuery then TUniQuery(C).Close;
end;