For example, I have a main unit of the program.
this unit call dll library the dll include connection to the database in the form and other code .
When i close the application i write this in formclose
Code: Select all
procedure Tfr_sell_buy.FormClose (Sender: TObject; var Action: TCloseAction);
begin
MyConnection1.Connected: = false;
MyConnection1.Free;
Action: = caFree;
end;
Problem if i add a connection object MyConnection1 on the main unit or just adding myaccess to uses in the main unit.
When application is terminated i found it still i manager task.
and i can not freelibrary it also return me error .
How i Solved it .
i used trial mydac 5.90 for d2010
Thank you