Solved

Massive Image Downloads Problem

Posted on 2007-12-04
7
252 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
  • 5
  • 2
7 Comments
 

Author Comment

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

Accepted Solution

by:
ciuly 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now