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...