AutoHotkey Community

It is currently May 26th, 2012, 6:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 18th, 2008, 6:17 pm 
Offline

Joined: March 18th, 2007, 10:00 am
Posts: 11
Hi,

I have a pretty simple script that downloads some web pages and saves them to files ( that are processed by other script using FileRead ).

But sometimes after hours of running the script is blocked with 100% CPU usage and very high I/O usage too according to Process Explorer.

The script is like this:

Code:
#Persistent

SetTimer, diez, 600000
SetTimer, uno, 60000

GoSub, uno
GoSub, diez
return

uno:
UrlDownloadToFile, http://www.webone.com, fWebOne
UrlDownloadToFile, http://www.webtwo.com, fwebTwo
return

diez:
UrlDownloadToFile, http://www.anotherWeb.com, fanotherWeb
return


I don't know how to solve the problem or at least diagnostic it, any idea ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2008, 3:23 am 
maybe reload the script once in a while


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2008, 10:12 am 
Offline

Joined: March 18th, 2007, 10:00 am
Posts: 11
It can be done programatically ?

Anyway, Autohotkey always close the file handlers when UrlDownloadToFile or FileRead are used ?
Or probably is something about threads, I don't understand yet how threads and subs/GoSub are related


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Tipsy3000 and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group