Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with TIdHTTP of Indy 9

3 views
Skip to first unread message

Salvatore Besso

unread,
Aug 28, 2001, 7:51:49 AM8/28/01
to
hello,

suddenly, a project (Delphi 5.01) that worked fine with Indy 8.0.23,
began to give EAccessViolation errors within the TIdHTTP component of
Indy 9, at the instruction:

HTTP1.Get(URL, Stream);

while trying to retrieve a binary file. After a small debugging it
seems that the AV fires after the file has been completely downloaded.
A TIdLogFile is bind to the HTTP component for logging purposes.

Needless to say that no changes were made to the project. The only
change doesn't concern the project itself, but rather the hardware: In
fact before I was using a V90 modem and now an ISDN one.

Can you give me some hints ?

Thank you
Salvatore


Doychin Bondzhev - Team Indy

unread,
Aug 28, 2001, 8:27:44 AM8/28/01
to
Can you try with latest snapshot from our ftp server?

Doychin Bondzhev - Team Indy

"Salvatore Besso" <s.b...@mclink.it> wrote in message
news:3b8b875c$1_2@dnews...

Salvatore Besso

unread,
Aug 29, 2001, 1:00:42 PM8/29/01
to
hello Doychin,

> Can you try with latest snapshot from our ftp server ?

yes, of course, but can you tell me again the exact URL ? I have lost
it :-)

Thank you
Salvatore


Doychin Bondzhev - Team Indy

unread,
Aug 29, 2001, 2:00:55 PM8/29/01
to
ftp://indy81:ind...@ftp.nevrona.com/

"Salvatore Besso" <s.b...@mclink.it> wrote in message

news:3b8d233a_2@dnews...

Salvatore Besso

unread,
Aug 30, 2001, 1:28:10 PM8/30/01
to
hello Doychin,

> Can you try with latest snapshot from our ftp server ?

downloaded latest snapshot (9.0.0-B) from your ftp server and AV is
still there. I have made further debugging and the AV is located into
TStream.WriteBuffer. The instruction in source code where AV fires is
HTTP.Get('some URL', Stream), where Stream is a standard Delphi
TMemoryStream object constructed before calling Get.

The source code fragment of my application is this (at this point I am
already connected to the Internet):


IndexList := TStringList.Create;
Stream := TMemoryStream.Create;
Screen.Cursor := crAppStart;
try
try
HTTP.Request.Accept := 'text/plain';
HTTP.Request.ContentType := 'text/plain';
URL := UpdateURL + '00index.txt';
IndexList.Text := HTTP.Get(URL); // This always works fine !

[... snip parsing of 00index.txt ...]

HTTP.Request.Accept := 'binary';
HTTP.Request.ContentType := 'binary';
URL := UpdateURL + FileName;
HTTP.Get(URL, Stream); // *** Access Violation fires here !
***
FileName := TempFolder + '\' + FileName;
Stream.SaveToFile(FileName);
FileList.Add(FileName);


I repeat that no changes has been made to the application nor to the
Delphi VCL source code. Only Indy has changed (from 8.0.23 - working,
to 9.0.0-B - AV).

Any hints ?

Thank you
Salvatore


Doychin Bondzhev - Team Indy

unread,
Aug 30, 2001, 1:46:39 PM8/30/01
to
Any chance to send me some example program and URL to test?

"Salvatore Besso" <s.b...@mclink.it> wrote in message

news:3b8e7786_2@dnews...

0 new messages