- This topic has 1 reply, 2 voices, and was last updated 3 years, 1 month ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hello,
ConnectionPool.AutoActivate := True;
Client.Connect;
Client.SendRequest(xxx …); //non dataset request
Then execute a Query … //dataset request
It will result in “Already connected” exception in indy.
Seems client dataset connections doesn’t check if the transport is already connected and tries to connect again!
I solved the problem with:
procedure TkbmMWClientConnection.InternalOpenConnection(ConnectionPool:TkbmMWCustomConnectionPool);
….
if not FTransport.IsConnected then // connect if not connected!
FTransport.Connect;
end;
Thank you
Check new release about to be released to see if it solves the problem for you.
/Kim