Functions running in IDE, but not running in standalone

Bruce Pokras dangmacguy at gmail.com
Thu Jul 23 17:16:59 EDT 2020


Matthias,

Thanks so much for all of your advice. 

I actually added tsNet as an inclusion very recently when Curry mentioned it, thinking it might help. I have eliminated it from my last version. Its use and its non-use did not change anything.

At this point the only things that seem to be creating my issues are the libURL commands/functions that I am using: libURLLastHTTPHeaders, libURLLastRHHeaders, and libURLSetSSLVerification. So I am going to slowly go back through all of my scripts, and one-by-one eliminate their usage to see what happens. I will report back what I find.

Regards,

Bruce

> On Jul 21, 2020, at 11:52 AM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Bruce,
> 
> i am now almost out of ideas. ;) 
> 
> If no one else has an idea, then i would contact Livecode Support.
> 
> But you could try one little thing before sending a support request.
> I cannot remember whne tsNet was introduced. But you could try to create a standalone which does not use tsNET.
> 
> So...
> 1. In Standalone Settings under inclusions uncheck tsNET
> 2. run       dispatch "revunloadlibrary" to stack tsnetliburl   in the message box
> This disables tsNET.
> 3. Now create a standalone. That standalone will now just use the libURL library without tsNET.
> 4. Test with that standalone
> 
> To enable tsNET again just restart Livecode or execute    dispatch "revloadlibrary" to stack tsnetliburl
> in the message box
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 21.07.2020 um 17:28 schrieb Bruce Pokras via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Matthias,
>> 
>> Thanks very much for your interest in helping me with my problems.
>> 
>> 1) Internet library working in the standalone? The Internet library is apparently installed and working properly for downloading patent text and PDF images with “put URL [web address] into binfile: [local file path and name]”. No problems with that.
>> 
>> 2) Savestackrequest message? I do not use that.
>> 
>> Regards,
>> 
>> Bruce
>> 
>>> On Jul 20, 2020, at 7:12 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Bruce,
>>> 
>>> i just tried with a sample stack where i did not include the Internet library. I get exact the same error in the bugreport (except the line number and stack name and so on).
>>> 
>>> "Executing at 12:58:33 AM on Tuesday, July 21, 2020
>>> Type: Handler: can't find handler
>>> Object: button "Button" of card id 1002 of stack "/Users/matthias/Downloads/test5/MacOSX/test.app/Contents/MacOS/test"
>>> Line: libURLSetSSLVerification false
>>> Line Num: 2
>>> Hint: libURLSetSSLVerification
>>> 
>>> Comments: hm,weird"
>>> 
>>> 
>>> If Internet library is really selected in under Inclusions in Standalone Settings, then either there is a problem with your Livecode installation or another guess...
>>> 
>>> Are you using  the savestackrequest message in your scripts? If so, is it possible by any chance that you did forgot to add "pass savestackrequest" before "End savestackrequest"?
>>> 
>>> I remember that a long time ago i  bothered the Support Team with a problem that database functions did not work in my standalone although i had enabled all needed inclusions.
>>> The problem was i used  the savestackrequest message to cleanup fields and other things in the stack before saving, but forgot to add "pass savestackrequest".
>>> The interesting part was, that the standalone was created and although all included externals were added to the standalone, the standalone was not able to communicate with the database. After adding that line, all was fine.
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code
>>> 
>>>> Am 21.07.2020 um 00:28 schrieb Bruce Pokras via use-livecode <use-livecode at lists.runrev.com>:
>>>> 
>>>> Matthias,
>>>> 
>>>> Yes to both Internet and SSL & Encryption libraries.
>>>> 
>>>> So everything should be running just fine, but are not.
>>>> 
>>>> Regards,
>>>> 
>>>> Bruce
>>>> 
>>>>> On Jul 20, 2020, at 6:04 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>> 
>>>>> Bruce,
>>>>> 
>>>>> and according to the dictionary Internet has to be included to use libURLSetSSLVerification.
>>>>> 
>>>>> 
>>>>> 
>>>>> -
>>>>> Matthias Rebbe
>>>>> Life Is Too Short For Boring Code
>>>>> 
>>>>>> Am 20.07.2020 um 23:29 schrieb matthias rebbe via use-livecode <use-livecode at lists.runrev.com>:
>>>>>> 
>>>>>> Bruce,
>>>>>> 
>>>>>> i might be wrong, but did you also include SSL&Encryption in StandaloneSettings.
>>>>>> If i recall it correctly then SSL&Encryption is needed for https.
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> -
>>>>>> Matthias Rebbe
>>>>>> Life Is Too Short For Boring Code
>>>>>> 
>>>>>>> Am 20.07.2020 um 22:28 schrieb Bruce Pokras via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
>>>>>>> 
>>>>>>> Matthias and Curry,
>>>>>>> 
>>>>>>> Thanks for your responses. I am using Indy for which I apparently do not have access to RemoteDebugger.
>>>>>>> 
>>>>>>> I did activate the “Bug Reports” feature and added “tsNet” to the included stuff for the standalone. 
>>>>>>> 
>>>>>>> From the bug reporter feature, it seems that “libURL" commands/functions are somehow creating a problem. (And, yes, I am including the Internet library in my standalone!).
>>>>>>> 
>>>>>>> Here are a couple of examples of the bug reports that were generated:
>>>>>>> ======
>>>>>>> Error from running Patent Grabber’s “Abstract Report":
>>>>>>> 
>>>>>>> Executing at 3:45:49 PM on Monday, July 20, 2020
>>>>>>> Type: Handler: can't find handler
>>>>>>> Object: stack "/Users/BruceiMac/Documents/Revolution/Projects 461/Patent Grabber 6.4.4-0310/MacOSX/Patent Grabber 6.4.4-03.app/Contents/MacOS/Patent Grabber 6.4.4-03"
>>>>>>> Line Num: 81
>>>>>>> Hint: libURLSetSSLVerification
>>>>>>> 
>>>>>>> My comments: Line 81 is where I set libURLSetSSLVerification to false. What does it mean “can’t find handler"???? Why not? It’s part of the included Internet library!
>>>>>>> 
>>>>>> _______________________________________________
>>>>>> 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
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> 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
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
>>> 
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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