Re: Canceling while downloading

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

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


It works.

"Don" <ehel…> wrote in message
> 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;


In response to

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