Solved

Massive Image Downloads Problem

Posted on 2007-12-04
7
262 Views
Last Modified: 2010-04-21
hi Experts,

Hope you can help!

I need to load a massive 72000 URL that I need to download via HTTP.

I've tried components...WebCopy, URLDownload and IdHTTP.

The problem is that the application just freezes and I have to kill the process!

I have to get to the point of having to load 500 at a time and download them but it just takes me all day :o/

Can someone please help me with some code which can be able to do this please!

P.S: It's not my PC that can't handle it! I've got an Alienware Top of the range PC.

Hope you can help!

Thanks

ST3VO
0
Comment
Question by:ST3VO
[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
  • 5
  • 2
7 Comments
 

Author Comment

by:ST3VO
ID: 20409684
Anyone please???
0
 
LVL 28

Accepted Solution

by:
2266180 earned 500 total points
ID: 20409743
idhttp should work just fine, provided that you are using idantifreeze setup correctly.

the alternative, is to create a thread and let the thread do the work, that way your UI will not freeze for sure.

but since you say you tried the idhttp, I would go with that one first. place an idantifreeze on the form, set the idletimeout to 50 and onlywhenidle to false. also, it should be active=true and applicationhaspriority=true

the alternative, and ugly solution is to place an onwork event for the idhttp and call the application.procesmesssages there. it won't work in 100% of all cases, but if your network connection can handle your load, then it will work just fine.
0
 

Author Comment

by:ST3VO
ID: 20409997
I'm testing it....I'll get ack to you...in a bit...Thanks :o)
0
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!

 

Author Comment

by:ST3VO
ID: 20410018
It's looking very promising...although I've just had one problem. It's now kind of doing something as it has the hourglass but it's now connecting to the new right now ....or doesn't seem to be....how can I know when it's busy doing something or not please?
0
 

Author Closing Comment

by:ST3VO
ID: 31412774
Works great! Thanks a million :o)
0
 
LVL 28

Expert Comment

by:2266180
ID: 20410631
well, AFAIK, indy doesn't set the cursor to anything. so there is some other component doing that. I personally never saw this behaviour before, but then again, I never did try to process a lot of stuff (or a big stuff) from the UI, but from a thread :)
0
 

Author Comment

by:ST3VO
ID: 20410659
Thanks !!! :o)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Title # Comments Views Activity
can't find the executable in Simulator 1 112
Performance of SQL statement 37 137
how can i search if string exist in array ? 3 69
Twebbrowser add css to the header 3 39
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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