Slow closing of the connection

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for MySQL in Delphi and C++Builder
Post Reply
ddeberla
Posts: 9
Joined: Fri 26 Oct 2007 16:20

Slow closing of the connection

Post by ddeberla » Fri 26 Oct 2007 16:28

Hi,

I'm using delphi 2007 trial, update 3, and dbxmda 4.0 trial with mysql 5.1.
All works fine but when I close connection , I takes some 5 seconds to continue. Debugging reveals that the time is spend on freeing the driver object

in DBXCOMMON on statement 'driver.free' :

procedure TDBXDriverRegistry.FreeDriver(Driver: TDBXDriver);
var
Index: Integer;
List: TList;
begin
List := FDrivers.LockList;
try
...
Driver.Close;
Driver.Free;
...
end;
finally
FDrivers.UnlockList;
end;
end;


Any suggestion what might cause this issue ? Or is it intentional in he trial version ?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 29 Oct 2007 10:37

Try to download and install the last version of DbxMda (4.20.3). If this problem is still persists in your application, try to reproduce it with a demo of DbxMda and provide us with exact steps to reproduce it.

Post Reply