Solved it!
I was thinking to myself how odd it was to try and save that data to a
string. So, I added this to a button:
dim h as new HTTPSocket
dim data as FolderItem
data = GetFolderItem("downer.rar")
h.get("http://www.rpgportland.com/software/sounds.rar", data)
Lo! Barely a blip in CPU usage and man was it fast.
So, I'd suggest trying that route and see what happens.
Later,
Fargo
Tomas Camin wrote:
Well at least I'm not alone.
I tried in different ways, but I'm always getting way too high cpu loads.
Tomas
Howdy,
On my XP box, I ran your code to download a file from my website, and
it would grab up to whatever CPU power was available. I put it in a
thread and that kept it running between 34 and 40% of the CPU load.
Should a single call to http get do that? I have no real idea. Mostly
I wanted to share that I had similar results. I know that downloading
a file in a browser doesn't incur that sort of overhead.
Later,
Fargo
Tomas Camin wrote:
Hi,
is it normal that httpsocket.get uses a lot of resources? I'm trying
to get a big file from the net simply doing:
start new project
Window1.open:
dim h as new HTTPSocket
dim data as string
data=h.get(<myfile>,5) // myfile=url to any big file on the net
No matter if I put it in a thread or not I get always between 50%
and 70% cpu usage. I've got a 4Mbit connection and an iBook G4 1.25Ghz.
Tomas
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>