Hi,

I'm having a dickens of a time trying to do something I thought would be simple.

I want to download a file with an HTTPSocket. While it's downloading I put up a dialog with a progress bar. When the download is finished the dialog is dismissed.

To do this, I have created a thread that issues a .get command via an HTTPSocket. The socket has a "done" property that it sets with DownloadComplete fires. The thread waits for this (or an error, or usercancelled), and then exits. Here's the basic code:

    mySocket.get theURLToDownload, f
    while DownloadDone = false and DownloadError = 0 and UserCancelled = false
    wend

The problem is that while the while/wend loop runs, the socket doesn't receive any data (ReceiveProgress never fires). The socket should run asynchronously (and in any case, is called from a thread), but no data are received.

What am I doing wrong? I imagine there is a simply solution to this problem that is eluding me because of a misunderstanding on my part.

Thanks,

Jon
_______________________________________________
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>

Reply via email to