Board index » cppbuilder » TIdTCPClient->MaxLineAction exception in BDS 2006

TIdTCPClient->MaxLineAction exception in BDS 2006


2006-06-29 03:00:36 AM
cppbuilder85
I am porting an application to BDS 2006 C++Builder that uses an Indy Tcp
Client component. When I run the app I get the exception: "Error reading
IdTCPClient1->MaxLineAction: Property MaxLineAction does not exist."
What can I do so get rid of this? I have the paths set up to use
"C:\Program Files\Borland\BDS\4.0\include\Indy9" and I believe I have the
Indy 9 components installed. Is it somehow compiliing as Indy 10 somehow?
Thanks,
Andrew Chess
 
 

Re:TIdTCPClient->MaxLineAction exception in BDS 2006

"Andrew Chess" < XXXX@XXXXX.COM >wrote in message
Quote
I am porting an application to BDS 2006 C++Builder that uses an Indy
Tcp Client component. When I run the app I get the exception: "Error
reading IdTCPClient1->MaxLineAction: Property MaxLineAction does
not exist."
Sounds like you installed Indy 10 when you installed BDS. There is no such
property in Indy 10's TIdTCPClient. Like many other connection-related
properties, it was moved to the TIdIOHandler class.
Quote
What can I do so get rid of this?
Don't try to use Indy 9 projects with Indy 10 installed, unless you are
willing to upgrade your code accordingly.
Quote
I believe I have the Indy 9 components installed.
Apparently not.
Quote
Is it somehow compiliing as Indy 10 somehow?
Most likely, yes.
Gambit
 

Re:TIdTCPClient->MaxLineAction exception in BDS 2006

The installed packages is talling me that Indy 9 is installed. Could this
not be correct somehow?
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"Andrew Chess" < XXXX@XXXXX.COM >wrote in message
news:44a2d165$ XXXX@XXXXX.COM ...

>I am porting an application to BDS 2006 C++Builder that uses an Indy
>Tcp Client component. When I run the app I get the exception: "Error
>reading IdTCPClient1->MaxLineAction: Property MaxLineAction does
>not exist."

Sounds like you installed Indy 10 when you installed BDS. There is no
such
property in Indy 10's TIdTCPClient. Like many other connection-related
properties, it was moved to the TIdIOHandler class.

>What can I do so get rid of this?

Don't try to use Indy 9 projects with Indy 10 installed, unless you are
willing to upgrade your code accordingly.

>I believe I have the Indy 9 components installed.

Apparently not.

>Is it somehow compiliing as Indy 10 somehow?

Most likely, yes.


Gambit


 

{smallsort}

Re:TIdTCPClient->MaxLineAction exception in BDS 2006

"Andrew Chess" < XXXX@XXXXX.COM >wrote in message
Quote
The installed packages is talling me that Indy 9 is installed.
How are you determining that exactly?
Quote
Could this not be correct somehow?
The BDS installer puts the Indy 10 files onto the hard drive even if the
packages are not installed into the IDE. Double-check your paths, and make
sure the IDE is not trying to pull in the Indy 10 packages by accident. If
you are not going to use Indy 10, then the best thing would be to remove the
files from the machine altogether to avoid conflicts. Make sure you don't
have any older Indy 9 files lingering from BCB, either.
Gambit
 

Re:TIdTCPClient->MaxLineAction exception in BDS 2006

I am determining the version by the fact that the installed packages form
says it's Indy 9.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"Andrew Chess" < XXXX@XXXXX.COM >wrote in message
news:44a2e774$ XXXX@XXXXX.COM ...

>The installed packages is talling me that Indy 9 is installed.

How are you determining that exactly?

>Could this not be correct somehow?

The BDS installer puts the Indy 10 files onto the hard drive even if the
packages are not installed into the IDE. Double-check your paths, and
make
sure the IDE is not trying to pull in the Indy 10 packages by accident.
If
you are not going to use Indy 10, then the best thing would be to remove
the
files from the machine altogether to avoid conflicts. Make sure you don't
have any older Indy 9 files lingering from BCB, either.


Gambit


 

Re:TIdTCPClient->MaxLineAction exception in BDS 2006

"Andrew Chess" < XXXX@XXXXX.COM >wrote in message
Quote
I am determining the version by the fact that the
installed packages form says it's Indy 9.
All that tells you is which packages are explicitally installed into the
IDE. Not which package files are available on the IDE's search paths.
Gambit