Page 1 of 1

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

Posted: Wed 20 Feb 2008 06:44
by C.F.Holm
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...

Posted: Fri 22 Feb 2008 14:08
by Challenger
We have fixed this problem. This fix will be included into the next build of DbxSda.