Massive Image Downloads Problem

Posted on 2007-12-04
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!


Question by:ST3VO
  • 5
  • 2

Author Comment

ID: 20409684
Anyone please???
LVL 28

Accepted Solution

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.

Author Comment

ID: 20409997
I'm testing it....I'll get ack to a bit...Thanks :o)
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.


Author Comment

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 can I know when it's busy doing something or not please?

Author Closing Comment

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

Expert Comment

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 :)

Author Comment

ID: 20410659
Thanks !!! :o)

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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