Solved

Help with Wininet.My project is like freeze when i am downloading file from internet

Posted on 2003-10-24
3
183 Views
Last Modified: 2011-10-03
I am using Wininet for downloadng files from internet.When i start with downloading hole project  is freezing up.While buffer (in InternetReadFile )  is loading  hole project is freezed and after that project is litle bit released and then again hole project is freezed.I thried with small buffer (256,1024) and with "Application.Processmessage" function but problem is not solved.  
0
Comment
Question by:nikola_mk
3 Comments
 
LVL 3

Accepted Solution

by:
JDuncan earned 500 total points
ID: 9617876
Are you using some thing like the following the following

      InternetReadFile(handle,addr(mybuffer),sizeof(mybuffer),DataLen);
     for i:=0 to 100 do  Application.ProcessMessage;

The effect changing the buffer size has will depend on the tcp routing buffer (around 1024 bytes of data).

You could try putting multiple appprocess messages in a for loop as above
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question