libURL issues?

Dave Cragg dcragg at lacscentre.co.uk
Tue Jan 27 17:55:24 EST 2004


At 10:12 am -0800 27/1/04, Richard Gaskin wrote:
>Is anyone else seeing issues with the load command in libURL today?
>
>"get url" works, but load almost always initiates, but then the socket
>closes too quickly for the resource to be loaded.


I couldn't load the stacks listed in the Stacks list. But it didn't 
seem to be a socket closing issue.

I poked around inside RevNet. Inside one of the backscripts (button 
id 1006 of card id 1002 of stack "....../Go_RevNet.rev"), look in the 
revnetGoStack handler. There is an "unload url pUrl" line in the 
handler a few lines before "load url pUrl". I think this is the 
culprit. When I comment out this line, it works OK. I don't think 
there is any need for the unload as the handler has already checked 
the cachedUrls.

I don't know for sure why the unload is causing a problem, but it may 
be to do with the way script locals are reset in libUrl. It seems as 
if the locals may not get deleted immediately, and this interferes 
with the load of the same url. I'll check it out and see if I can 
find a fix.

By the way, I find I have to click many times on the link at the top 
of the stackInfo field before the linkClicked message gets sent. This 
is in OS X. Do you have the same problem?

Cheers
Dave


More information about the use-livecode mailing list