Hi Dan,
The error message "Not initialised" (the spelling is correct depending
on where you live ;-) ) indicates that the tsNet external isn't running.
If you are using libUrl which I am guessing you are, tsNet is
initialised on startup, so this would indicate that it has either been
shut down by calling tsNetClose directly, or by a call to the libUrl
"resetAll" or "libUrlCancel" commands (which temporarily shut down the
external and start it back up to clear all connections).
I have seen code posted on the list in the past which invoked "resetAll"
to deal with issues in older versions of libUrl. Do you use these
commands at all in your project?
Regards,
Charles
On 12/07/2017 3:33 AM, Dan Friedman via use-livecode wrote:
I am porting a large project from LC 7 to 8.1.5. Occasionally, I get this
error when accessing the internet: “tsneterr: Not initialised” (misspelled, by
the way). It works fine for a while, then it just fails. And, once it fails
you have to completely restart. Sometimes LC even crashes!
It seems to be happening when one network connection isn’t finished and it
tries to start another one. I did not have this problem in LC 7 using libURL.
So, I’m pretty confident it’s something with tsNet.
If it’s because tsNet calls are crashing into each other, and If all calls [by
default] are blocking, how could one connection be started before the previous
one is completed?
I had this problem with previous versions of 8.1, but I was hoping it would be
fixed in 8.1.5.
Anyone have any insight? I would very much like to move forward with tsNet,
but if this isn’t resolved, I can’t. Is it possible to continue with 8.1.5,
and still use the old libURL?
-Dan
_______________________________________________
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
_______________________________________________
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