Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Massive Image Downloads Problem

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
ST3VO
Asked:
ST3VO
  • 5
  • 2
1 Solution
 
ST3VOAuthor Commented:
Anyone please???
0
 
2266180Commented:
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
 
ST3VOAuthor Commented:
I'm testing it....I'll get ack to you...in a bit...Thanks :o)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ST3VOAuthor Commented:
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
 
ST3VOAuthor Commented:
Works great! Thanks a million :o)
0
 
2266180Commented:
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
 
ST3VOAuthor Commented:
Thanks !!! :o)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now