Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Re: TClientSocket ctBlocking - SENDING ME CRAZY

www.cryer.info
Managed Newsgroup Archive

Re: TClientSocket ctBlocking - SENDING ME CRAZY

Subject:Re: TClientSocket ctBlocking - SENDING ME CRAZY
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 5 Apr 2007 10:17:08

"DC" <egg@egg.ns.com> wrote in message
news:4614c6e1$1@newsgroups.borland.com...

> All is well in Project one, but in the service it does not work.

Then you are likely using it wrong in the first place.  But you did
not provide any details or code to show how you are actually using it.
So there is no way to diagnose your problem.

> If I make a requst to the service it just hanges.

What kind of request?  You are not using the TClientSocket inside the
service's OnExecute event, are you?

> I have tried all different kinds of ways of doing it, using threads
> etc but with no joy.

You should be using a thread for the TClientSocket so that it doesn't
block anything else inside the service.

> Surely I am not the only person to ever to use TClientSocket in a
service.

No.  I use sockets in services all the time.  But I have never used
RemObjects for my services.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive