Monte Carver 0 Posted March 15, 2023 (edited) While using a TFDConnection (FireDAC) our application leaks memory after the DB connection is lost. The size of the leaks is directly related to how many TFDQuery instances have been instantiated. Please advise how to resolve these relatively massive leaks. Incidentally this is running against a DB2 database Edited March 15, 2023 by Monte Carver Share this post Link to post
programmerdelphi2k 237 Posted March 15, 2023 there are many variants to think about: do you try to "close" the FDQry when "lost connection" is noticed? if, your FDQry are being used to run tasks on threads, for example? ...threads need to be notified in case of connection loss and stop any actions related to them! Share this post Link to post