Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: TidStreamVCL or TIdStreamVCLWin32???

www.cryer.info
Managed Newsgroup Archive

Re: TidStreamVCL or TIdStreamVCLWin32???

Subject:Re: TidStreamVCL or TIdStreamVCLWin32???
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 10 Apr 2006 13:21:42

"Jacques Noah" <jacques.noah@btinternet.com> wrote in message
news:4437bea1@newsgroups.borland.com...

> Another problem arised when i added a idTCPClient component
> to my project. When i try to run it, a error message saying:
> 'Property ConnectTimeOut does not exist'.

You have older Indy DCUs still installed on your computer.

> The only component on the form is the idTcpClient and i've not
> tried to connect with it at all, so i'm abit confused as to why it is
> refering to any kind of connection??

You are seeing a compile-time error, not a run-time error.

> The connecttimeout property is set to -1 in the object inspector.
> When i actually try to set the property programmatically in the
> OnformCreate event, the property does not exist.

In any case, the ConnectTimeout property appears in the Object Inspector
because it is pulling the properties out of the component's RTTI directly,
so it is always up-to-date.  The compiler, on the other hand, is obviously
finding older files to link to, not the newer files, and the property does
not exist in the older files so it can't compile the code correctly.

> There is a idTcpclient.connect(ATimeout) option

All the more reason that you have old DCUs on the machine.
Connect(ATimeout) no longer exists.  It was removed when the ConnectTimeout
property was introduced.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive