Article View: borland.public.cppbuilder.internet.socket
Article #2184Re: TIdHTTP component and BCB2006
From: masi
Date: Fri, 14 Jul 2006 08:49
Date: Fri, 14 Jul 2006 08:49
26 lines
2099 bytes
2099 bytes
> Well, for starters, you need to update your DFM so that it does not
> reference non-existant properties anymore.
In order to make code portable from BCB6 and BDS2006, I just rewrited app in
this way:
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
IdHTTP = new TIdHTTP(this);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Memo1->Text = IdHTTP->Get(Edit1->Text);
}
//---------------------------------------------------------------------------
Now, on BDS2006 it works fine if I compile it checking 'Build with runtime
packages' option (vcl,rtl,indy).
But if I compile app without checking 'Build with runtime packages' option,
it gives an access violation error (read of address 0) on form's creation.
Under BCB6, instead, it works fine in any case.
Any idea?
masi urbano
Technical Details
Message-ID:
<44b75aa5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!atl-c05.usenetserver.com!news.usenetserver.com!peer01.west.cox.net!cox.net!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44b39b74$1@newsgroups.borland.com> <44b3d495$1@newsgroups.borland.com> <44b4c278@newsgroups.borland.com> <44b52936$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,58cbb7a88b1fb79d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "masi" <masiurb@tin.it> From: "masi" <masiurb@tin.it> Newsgroups: borland.public.cppbuilder.internet.socket References: <44b39b74$1@newsgroups.borland.com> <44b3d495$1@newsgroups.borland.com> <44b4c278@newsgroups.borland.com> <44b52936$1@newsgroups.borland.com> Subject: Re: TIdHTTP component and BCB2006 Date: Fri, 14 Jul 2006 10:49:41 +0200 Lines: 28 Organization: urbano X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 84.220.86.69 Message-ID: <44b75aa5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152866981 84.220.86.69 (14 Jul 2006 01:49:41 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!atl-c05.usenetserver.com!news.usenetserver.com!peer01.west.cox.net!cox.net!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail