Solved

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

Posted on 2003-10-24
3
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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