Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: closing an application over the network

www.cryer.info
Managed Newsgroup Archive

Re: closing an application over the network

Subject:Re: closing an application over the network
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 20 Dec 2007 12:18:52

"soonic" <xxsoonic@op.pl> wrote in message
news:476acabb$1@newsgroups.borland.com...

> procedure TRecordSend.ReadFrom(Cc: TIdTCPConnection);

Where is ReadFrom() being called from exactly?  If it is not in the context
of the main thread, then your approach will not work.
Application.Terminate() must be called in the context of the main thread
only.  It posts a WM_QUIT to the calling thread.  If it is called from
another thread, then the message will go to the wrong thread and the
application will not terminate.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive