Page 1 of 1

load URL wth message hangs

Posted: Thu Dec 20, 2007 4:01 am
by Simon
Hi,
I've been downloading files using
load URL "http://......" with message "downloadComplete"
just like the docs say.
But on large or slow downloads the downloadComplete message never gets passed. I watch and can see when the bytesReceived = bytesTotal but the app just hangs never getting to "downloaded". Hitting Ctrl+. does push it through in the stand alone and during development.
Anybody have any ideas on how to fix this?

Thanks,
Simon

Posted: Thu Dec 20, 2007 10:13 am
by Mark
Simon,

It would be easier if you posted your script. Are you using a repeat loop with "with messages" added to it?

Best,

Mark

Posted: Sat Dec 22, 2007 1:29 am
by Simon
Hi Mark,
Here is the code:

on updatePod
load URL "http://www.lunar.com/pressroom/podcast/ ... 121807.mp3" with message "downComplete"
end updatePod

No loops, really simple.
The difficult part in testing this is try it on a dial-up. Or figure out how to choke your bandwith to 26KB/s. Then you'll see the problem.

Thanks,
Simon

Posted: Sat Dec 22, 2007 1:32 am
by Mark
Simon,
I watch and can see when the bytesReceived = bytesTotal but the app just hangs never getting to "downloaded"
How?

Best,

Mark

Posted: Sat Dec 22, 2007 1:37 am
by Simon
Hi Mark,
I had libURLSetStatusCallback running but took it out as I wasn't interested in the progress. So I could see it then.

Regards,
Simon