The error 1 usually means the socket is busy. Try using a different. socket. Like this. have 2 http sockets if the update is needed then use the second one. and instead of a text file use a header. this way its all backend it will move faster. so error 1 was socket is busy. create a new one instead of waiting for the yeild.


On Jul 3, 2006, at 11:32 AM, Craig Hoyt wrote:

I'm trying to implement on of those 'check the web for newer version' routines. I have a text file that contains just a version number on my web site. I use HTTPSocket to retrieve this file and compare against the current version of my app. All this does work. If my app has a newer version I have a button appear in my about window which should let the used download a newer version to their desktop. I'm getting a error of 1 and it is reported immediately where I would expect a small delay before reporting an error. I can't seem to find out what error 1 is. All HTTP errors are in the hundreds range. If I use the HTTP RB example I can download the file but not from my app. Here's the code I'm using;

Dim mySocket As New HTTPSocket
Dim f As FolderItem
f = DesktopFolder
If f <> Nil then
mySocket.Yield = true
mySocket.Get( "http://mydomain/Updates/myfile"; , f)
else
beep
end if
_______________________________________________
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>

Reply via email to