Connection rejected by remote interface

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
calou
Posts: 116
Joined: Tue 27 May 2008 12:46

Connection rejected by remote interface

Post by calou » Fri 13 Nov 2009 11:19

Hello,

I use FB 2.1
In my application sometimes when i call this function

Code: Select all

procedure TfrmMain.CreateIbcQryTmp(var ibcqry: TIBCQuery;var ibccnnx:TIBCConnection;var ibctrnsct:TIBCTransaction);
begin
  ibccnnx:=TIBCConnection.Create(self);
  ibccnnx.Assign(IBCCnnctn);
  ibcqry:=TIBCQuery.Create(self);
  ibcqry.Connection:=ibccnnx;
  ibctrnsct:=TIBCTransaction.Create(self);
  ibctrnsct.IsolationLevel:=iblReadOnlyReadCommitted;
  ibctrnsct.DefaultConnection:=ibccnnx;
  ibcqry.Transaction:=ibctrnsct;
  ibccnnx.Connect;
end;
I call it like this

Code: Select all

procedure TfrmGraphData10Min.DrawSeries(prjt, nom_trbn: string);
var
  c,i:integer;
  s:string;
  min,max,val:double;
  ibcqry:TIBCQuery;
  ibccnnx:TIBCConnection;
  ibctrnsct:TIBCTransaction;
begin
  frmMain.CreateIbcQryTmp(ibcqry,ibccnnx,ibctrnsct);
...
end;
I have the message "Connection rejected by remote interface'
After all connections to the database are broken
If i close the application on the dbmonitor i see that all the connections in error state are completed and if i relaunch the application all works good

What could be wrong?

Thanks for help

calou
Posts: 116
Joined: Tue 27 May 2008 12:46

Post by calou » Mon 16 Nov 2009 12:44

Hello,

I found the problem. The objects was not really free after their use

Regards

Post Reply