Strange problem with tsNet external on Windows

Ralph DiMola rdimola at evergreeninfo.net
Thu Mar 15 17:29:27 CET 2018


Graham,

Also check tsNet, it's way down at the bottom of the inclusions pane. Or you can disable tsNet and use only libURL.

Here are a couple of handlers to find out if is tsNet is enabled. Below that is how to explicitly enable/disable tsNet.


function GetNetworkType
   local tLibUrlDriver
   
   try
      put the behavior of stack"revLibUrl" into tLibUrlDriver
   end try
   if tLibUrlDriver is empty then
      return "Sockets"
   else
      return "tsNet"
   end if
   
end GetNetworkType

command NetworkType
   if GetNetworkType() = "Sockets" then
      answer"tsNet is disabled"
   else
      answer "tsNet in use"&cr&"Version==>"& tsNetVersion()
   end if
end NetworkType


To unload:

    dispatch "revUnloadLibrary" to stack "tsNetLibUrl"

To load again:

    dispatch "revLoadLibrary" to stack "tsNetLibUrl"


Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Graham Samuel via use-livecode
Sent: Thursday, March 15, 2018 11:47 AM
To: How to use LiveCode
Cc: Graham Samuel
Subject: Strange problem with tsNet external on Windows

I have a LiveCode standalone running as PC app (a .exe file, plus some other files which are needed when it runs). If I simply run the original standalone on Windows 7 (OK, running under Parallels on a Mac), it all just works. If I create an installer for the program and its dependent files using Inno Setup, the whole thing appears to run smoothly, but when I run the installed version of the app (which is exactly the same size as the original standalone, as expected), I get an error from the LC engine “Initialization Error: Failed to load external: tsNet”. I suppose I have somehow failed to include tsNet, but it was specifically included in the standalone (as “internet”) and anyway the original standalone works.

Should I somehow be giving my installed app a path to the LC externals? I’m confused.

Graham
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list