So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird.
I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However if it's in the card script the app goes mad - it starts processing the card script from the top, running any code it encounters (my urlProgress code was at the top of the card script, so it was triggered by the sending of upDateSongs from the button - hence my suspicions about libUrlDownloadToFile and urlProgress). Crazy. And it makes me wonder if my stack is somehow corrupt. Anyone seen that before? Cheers Gerry On Tuesday, 22 March 2011 at 3:29 PM, Gerry wrote: > I'm using libUrlDownloadToFile to download some mp3s. As you might know > libUrlDownloadToFile periodically sends the message "urlProgress" to the > originating object so you can monitor the progress of downloads. > > It's working well, but I'm confused about when libUrlDownloadToFile stops > sending the urlProgress message. Does it stop once the download is complete? > Or do I have to explicitly kill it? > > I ask because I'm getting some weird behaviour that is very hard to > explain...but knowing how and when the urlProgress message stops being sent > will assist me in troubleshooting :) > > Oh, and I'm working off page 14 of the iOS release notes. The user guide > entries for libUrlDownloadToFile just confuse me, as it appears to be > documentation for a slightly different version of the libUrlDownloadToFile > command. > > Cheers > > Gerry > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode