Simultaneous connections in main application and a dll to same = Weirdness!

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
C.F.Holm
Posts: 6
Joined: Tue 19 Feb 2008 23:45

Simultaneous connections in main application and a dll to same = Weirdness!

Post by C.F.Holm » Wed 20 Feb 2008 06:44

Hi,

I have a strange problem with the CoreLab driver - "DbxSda" and unfortunately no problems with the codegear MSsql driver :-(

Here it is :

I have a strange problem using dbxexpress ("DbxSda") in a main application (delphi32) and in a dll called from the main application - both have active connections (seperate) to the same database. Everything seems to run ok until I close the main application and it results in an exception "Invalid Pointer Operation" it breaks in the dbx-code here:

destructor TDBXDynalinkDriver.Destroy;
begin
>> FMethodTable.FDBXBase_Close(FDriverHandle); > the exception when the main application closes.
FDriverHandle := nil;
FreeAndNil(FMethodTable);
inherited Destroy;
end;


This is the case regardsless of which database I Connect to - can anybody give me a clue?!? any help would be appreciated.

Regards Christian

PS: If I disconnect the SQLConnection in the main application before making the call to the routine in the dll, the main application closes allright...

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Fri 22 Feb 2008 14:08

We have fixed this problem. This fix will be included into the next build of DbxSda.

Post Reply