Indy Already connected exception

Home Forums kbmMW Indy Already connected exception

Viewing 1 reply thread
  • Author
    Posts
    • #56657
      Babis Michael
      Participant

      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

    • #56699
      kimbomadsen
      Keymaster

      Check new release about to be released to see if it solves the problem for you.
      /Kim

Viewing 1 reply thread
  • You must be logged in to reply to this topic.