Page 2 of 2

Posted: 06.02.2010, 17:27
by Wild_Pointer
mdaems,

Thank you for providing the link to the bug report. Now I see why the change was introduced. The memory leak appears because on TZPostgreSQLConnection.Open the Connect structure in pqlib is created no matter if connection was successful or not. This is ok as pqlib must pass error message back to client some how... But in TZPostgreSQLConnection this made a situation then the connection structure was created but FClosed stayed true.
The solution of 0000136 was to Finish the connection if it does not succeed to connect and it was ok - except it should not be on CheckPostgreSQLError as this procedure is used not only on connect.
Attaching patch.

Posted: 09.02.2010, 00:17
by mdaems
SVN Rev 789. Thanks for your patience.

Mark

Posted: 14.03.2010, 16:11
by olehs
Wild_Pointer,
I also thank you for your patience in solving the problem :thanks:

Posted: 14.03.2010, 19:59
by silvioprog
Hellow Mark (and all ;) )

:thx: you for providing the link to the bug report.[²] :up: