Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : OnWork does not fire in Indy10 Delphi 2007

www.cryer.info
Managed Newsgroup Archive

OnWork does not fire in Indy10 Delphi 2007

Subject:OnWork does not fire in Indy10 Delphi 2007
Posted by:"Moore" (moo..@hotmail.com)
Date:12 Feb 2008 05:19:19

in a TIdTCPClient OnWork event i have the following code :

if AWorkMode = wmRead then
Edit1.Text := TCPClient.IOHandler.ReadLn;

in the TIdTCPServer counterpart the following in the OnConnect event :

AContext.Connection.IOHandler.WriteLn('Received');

it seems the OnWork does not fire as I see no text in Edit1, am I doing it the right way? or there is a better way to make the OnWork event fire?
thnx..

Replies:

www.cryer.info
Managed Newsgroup Archive