dbexpsda30.dll is locking app up on shutdown

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
Preston
Posts: 4
Joined: Wed 22 Aug 2007 17:08

dbexpsda30.dll is locking app up on shutdown

Post by Preston » Wed 22 Aug 2007 17:12

We have an app that currently uses Borland's dbExpress driver. If we swap that out for the dbexpsda30.dll everything runs fine until we try to shut the app down. At that point it appears all the threads are in a wait state (deadlock?). Swapping back to the Borland driver solves the problem.

Any suggestions.

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

Post by Antaeus » Thu 23 Aug 2007 12:41

Please specify the exact version of DbxSda, and the exact version of your IDE.
In what applications does the problem appear (in any application, in certain applications, in multithreaded applications, etc.)?

Preston
Posts: 4
Joined: Wed 22 Aug 2007 17:08

Post by Preston » Thu 23 Aug 2007 13:49

Version 4.0.0.1
Delphi 2006 - 10.0.2558.35231

I'm not sure as to what is causing the problem. Right now we're just starting the app and then immediately shutting it down. There is a little code that fires on start up, but nothing out of the ordinary.

One thing that might be a clue is that the problem is happening on our 64 bit XP machine. The 32 bit machines are running fine. We're doing more testing to determine if this is or is not related to the issue.

Preston
Posts: 4
Joined: Wed 22 Aug 2007 17:08

Post by Preston » Thu 23 Aug 2007 14:30

I can now reproduce the error on a 32 bit machine, so that isn't it.

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

Post by Antaeus » Mon 27 Aug 2007 06:47

Preston wrote:There is a little code that fires on start up, but nothing out of the ordinary.
Does this code perform connect to a server?

Can you reproduce this problem with DbxSda 4.00.2?
You download DbxSda 4.00.2 from here.

Preston
Posts: 4
Joined: Wed 22 Aug 2007 17:08

Post by Preston » Tue 28 Aug 2007 15:44

I can reproduce the issue using build 4.00.2

The code, opens and closes a connection.

I've found that turning off the applicaiton.initialize solves the problem. However, that causes comm issues (expected).

The problem is related to the initProc pointer. Is the dll doing something with it?

Can I test this on an older version of the driver?

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

Post by Antaeus » Wed 29 Aug 2007 11:34

I also received your email describing this problem, and answered it.

Post Reply