TOLEDBCommand.Destroy - interfaces not released (1) (D:\Projects\Delphi\Sdac\Source\OLEDBAccess.pas, line 2515)

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 8
Joined: Fri 16 Mar 2007 03:20

TOLEDBCommand.Destroy - interfaces not released (1) (D:\Projects\Delphi\Sdac\Source\OLEDBAccess.pas, line 2515)

Post by hsldev » Fri 16 Mar 2007 03:30


We currently have a threaded application that is returning this error.

"TOLEDBCommand.Destroy - interfaces not released (1) (D:\Projects\Delphi\Sdac\Source\OLEDBAccess.pas, line 2515)"

We realise that it is probably something we are not doing correctly in the threaded environment, but we cannot see anything untoward. Eureka log tells us that this seems to be happening on freeing up a data module containing sever TmsStoredProc's that we create inside the thread. We are not really sure where else to look.

The error occurs only intermittently at client sites and we haven't been able to reproduce it in a test app.

Windows XP SP2
SQL Server 2005
Delphi 5.01


Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Fri 16 Mar 2007 07:56

Most possible reason of this problem is that one instance of TMSConnection, TMSQuery, or TMSStoredProc component is used in different threads simultaneously.

Post Reply