libURLSetStatusCallback Runtime error

Peter Haworth pete at lcsql.com
Sat Oct 6 12:43:36 CDT 2012


I'm getting a runtime error on a call to libURLSetStatusCallback.  The
error is "can't find handler" and the line in question is:

libURLSetStatusCallback "lcDownloadStatusCheck",the long ID of stack
"lcStackBrowser_CheckForUpdates"

There is a handler named "lcDownloadStatusCheck" in the stack script of
stack lcStackBrowser_CheckForUpdates and the above command is in the same
script.

The command is executed from an openCard handler for the first card in my
main stack.  The check for updates can be manually initiated via a tools
menu item, is done with the same code, and works with no problem when
initiated that way.

This error has just surfaced now that I'm using LC 5.5.2; in LC 5.5.0 there
was no error but I've long been puzzled why my check for updates at startup
didn't appear to be working.

I'm unclear as to exactly which handler can't be found - lcDownloadCheck is
right there and libURLSetStatusCallback is a standard LC handler.

Pete
lcSQL Software <http://www.lcsql.com>


More information about the use-livecode mailing list