Page 1 of 1

Connection rejected by remote interface

Posted: Fri 13 Nov 2009 11:19
by calou
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

Posted: Mon 16 Nov 2009 12:44
by calou
Hello,

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

Regards