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
load URL wth message hangs
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Simon,
It would be easier if you posted your script. Are you using a repeat loop with "with messages" added to it?
Best,
Mark
It would be easier if you posted your script. Are you using a repeat loop with "with messages" added to it?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
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
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
Simon,
Best,
Mark
How?I watch and can see when the bytesReceived = bytesTotal but the app just hangs never getting to "downloaded"
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode