Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-10

RQ : using TTCPClient / TEventLoop HOWTO ?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Todorov

Hello,
can anybody point me to documentation on using TTCPClient from fpSock.pp ? I am porting a Delphi app which uses TidTCPClient to send / receive text over tcp.
I changed this to using TTCPClient but when doing :

    MyTCPClient.Active := true

an exception is raised : 'No event loop assigned'

This is because property EventLoop : TEventLoop is not assigned. What is it used for ? Nothing found on google. (:

Even doing :
  MyTCPClient.EventLoop := MyEventLoop;
  MyTCPClient.Active := true

doesn't help. The exception is not raised but the client is still disconnected.

Any help / hints would be more than welcome.

TIA.

Reply by email