🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
6 messages
6 total messages Started by masi Tue, 11 Jul 2006 12:37
TIdHTTP component and BCB2006
#2255
Author: masi
Date: Tue, 11 Jul 2006 12:37
24 lines
1434 bytes
I have a trivial application using an TIdHTTP component working fine under 
BCB6:


void __fastcall TForm1::Button1Click(TObject *Sender)
{
  String response = IdHTTP1->Get(Edit1->Text);
  Memo1->Clear();
  Memo1->Lines->Add(response);
}

when I type an url into Edit1, and press Button1, I can see the server's 
response into Memo1 .


Now, if I try to open my project with BCB2006, it first tells me that 
IdHTTP1->Request.ProxyPort does not exist.
It compiles and then at start it gives an EAccessViolation error.

What's wrong?

thanks

masi urbano
Re: TIdHTTP component and BCB2006
#2256
Author: Remy Lebeau (TeamB)
Date: Tue, 11 Jul 2006 16:40
30 lines
1772 bytes
"masi" <masiurb@tin.it> wrote in message
news:44b39b74$1@newsgroups.borland.com...

> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
>   String response = IdHTTP1->Get(Edit1->Text);
>   Memo1->Clear();
>   Memo1->Lines->Add(response);
> }

Since the HTML likely has line breaks in it, you should assign the Text
property instead, ie:

    void __fastcall TForm1::Button1Click(TObject *Sender)
    {
        Memo1->Text = IdHTTP1->Get(Edit1->Text);
    }

> Now, if I try to open my project with BCB2006, it first tells me
> that IdHTTP1->Request.ProxyPort does not exist.

Did you install Indy 9 or 10 when you installed BDS?  Which version of Indy
were you previously using?  I'm guessing that you were using Indy 8, because
BCB6 ships with Indy 8 preinsalled, and there is no Request.ProxyPort
property in either Indy 9 or 10.  ProxyPort is a subproperty of the
ProxyParams property now.


Gambit
Re: TIdHTTP component and BCB2006
#2261
Author: masi
Date: Wed, 12 Jul 2006 09:35
25 lines
1741 bytes
> Did you install Indy 9 or 10 when you installed BDS?  Which version of 
> Indy
> were you previously using?  I'm guessing that you were using Indy 8, 
> because
> BCB6 ships with Indy 8 preinsalled, and there is no Request.ProxyPort
> property in either Indy 9 or 10.  ProxyPort is a subproperty of the
> ProxyParams property now.


Yes, I was using BCB6 with Indy 8.

But I have not set any value for Request.ProxyPort, which has default value 
0.

I installed BDS2006 Pro from CBuilder2006 CD.  This is the line I read on 
Version Info on About Box.

indy100.bpl, 9.0.50.0, C:\Programmi\Borland\BDS\4.0\Bin\


Now is there any way to make that code work properly under BDS2006?

thanks

masi urbano
Re: TIdHTTP component and BCB2006
#2265
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Jul 2006 16:49
21 lines
1530 bytes
"masi" <masiurb@tin.it> wrote in message
news:44b4c278@newsgroups.borland.com...

> Yes, I was using BCB6 with Indy 8.

Indy 8 is no longer supported.

> But I have not set any value for Request.ProxyPort,
> which has default value 0.

Your DFM is obviously referencing that property, though, or else you would
not have gotten the error at all.

> Now is there any way to make that code work properly under BDS2006?

Well, for starters, you need to update your DFM so that it does not
reference non-existant properties anymore.


Gambit
Re: TIdHTTP component and BCB2006
#2196
Author: Bob Gonder
Date: Sat, 15 Jul 2006 15:23
16 lines
1942 bytes
Remy Lebeau (TeamB) wrote:

>"masi"  wrote in message
>
>> The result is that, if I compile without checking 'build with runtime
>> packages' option, application gives error in the execution of that
>> statement:
>>    IdHTTP = new TIdHTTP(this);
>
>There is nothing in TIdHTTP's constructor that should be throwing AVs during
>its instantiation, regardless of whether runtime packages are used or not.

Could there be a conflict with versions 8/9/10?
Perhaps 8 wasn't properly removed, and is being called with different
data structures from 9?
Just guessing from the bpl / non-bpl-ness of the problem.
Re: TIdHTTP component and BCB2006
#2202
Author: masi
Date: Mon, 17 Jul 2006 08:50
14 lines
1769 bytes
> You should not be trying to migrate old projects.  Borland's migration
> support has never worked properly in any version of the IDE.  Always
> re-create projects from scratch and add existing source files to the new
> project.  Have you done that yet?

Yes, now it works.
But I was trying to use the same sources, with different project files (.bpr 
and .bdsproj) because at this time I can't be sure about ultimately 
migrating entire app to BCB2006. I want to ensure the chance of a downgrade 
to BCB6.

Thanks a lot for help.

masi urbano
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads