Re: Canceling while downloading

Giganews Newsgroups
Subject: Re: Canceling while downloading
Posted by:  Don (ehel…@hotmail.com)
Date: Sat, 20 Dec 2003

I think I resolved the problem.
I put a line in FormCreate:

  antifreeze:=TidAntiFreeze.create(nil);

It works.

"Don" <ehel…@hotmail.com> wrote in message
news:59276898DD8AE240ehel…@hotmail.com...
> When I used TNMHTTP, it was able to cancel while downloading clicking a
> button "Stop."
> Now I am using TIdHTTP, and it does not allow me to click the Stop button.
> The entire application is frozen while it is downloading. I can only click
> ths Stop button after it finishes downloading. I am sure I am doing
> something wrong. Anybody can help me?
> The code is:
>  fstream:=TFileStream.create(savefname, fmcreate);
>  try
>    IdHTTP1.Get(URL, fstream);
>  except
>  end;
>  fstream.free;

Replies

In response to

Canceling while downloading posted by Don on Fri, 19 Dec 2003