Re: Functions running in IDE, but not running in standalone

2020-07-26 Thread Curry Kenworthy via use-livecode



Bruce:

> comment-out all the instances where I am using a libURL command
> or function, save as a standalone, and and see what happens.

Now you need to follow through on your diagnosis. It will not be 
efficient to quickly abandon a sound diagnosis and search for something 
else. People do that too often. Trust logic! Trust math. Stick with it.


The "can't find handler" error is very specific. It doesn't allow us 
infinite freedom to interpret the cause. Assuming the error message 
itself is correct, that leaves only a few possible direct causes: the 
(appropriate) Internet Library isn't loaded, handler isn't in the 
message path, handler name misspelling, etc.


So keep looking at the AREA of inclusions AND related issues - you have 
NOT ruled those out yet! It's not about trying one specific possibility 
in that area, and then giving up on the area. It's about knowing that 
your problem is almost certainly in that area, so you focus your hunt in 
that area to efficiently find the culprit.


Since your product is over 10 years old, make sure your mainstack 
doesn't have any old versions of Internet library accidentally embedded, 
for example. Or back to the inclusions. Something that prevents a good 
app build, or a matter of timing before everything is loaded.


Since Matthias was able to get the same error message, you should also 
try a new sample stack with libURLSetSSLVerification, like he did. That 
would remove a lot of other variables for a clean test building with 
your IDE.


And as he suggested, you should open a support ticket, if you haven't.

There have been some changes to the libraries over the years that can 
cause problems, so checking your libURL calls would be a good idea if 
that's where the evidence pointed. Still not a bad idea to double-check 
the calls. LC error reporting is not 100% accurate, and I've seen weird 
things happen.


But it's not where the evidence points. I would place my bet on the 
"inclusions and related" area; it's the likely winner with overwhelming 
odds. Since you have the "can't find handler" error message (if that's 
still the error you have) and since there's the IDE vs standalone 
evidence, that's a lot of evidence.


So it is the most likely road to lead to a solution. And that's where 
you should focus more of your efforts, if you want to solve this 
quickly. You haven't ruled it out; you've only started on it. Follow 
through! Unless you can PROVE at runtime that Internet Library is loaded 
in your standalone and that libURLSetSSLVerification is in the message 
path of the calling handler, that's still your problem. :)


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
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


Re: Functions running in IDE, but not running in standalone

2020-07-25 Thread Bruce Pokras via use-livecode
Matthias,

Yes, I did run the command that you so helpfully provided to unload tsNet. 
Unfortunately or fortunately, nothing changed. So I am going to go back one 
build and slowly comment-out all the instances where I am using a libURL 
command or function, save as a standalone, and and see what happens.

Regards,

Bruce

> On Jul 23, 2020, at 5:30 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> 
> 
>> Am 23.07.2020 um 23:16 schrieb Bruce Pokras via use-livecode 
>> :
>> 
>> 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.
>> 
> 
> But after you've removed the inclusion of tsNET, did you also unloaded tsNET 
> in the message box before you've created a new standalone? This is important.
> 
> The only difference between LC7 and LC8.1.9 i could imagine what could be the 
> cause is tsNET which was introduced in 8.1.0.
> 
> 
> ___
> 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


Re: Functions running in IDE, but not running in standalone

2020-07-23 Thread matthias rebbe via use-livecode



> Am 23.07.2020 um 23:16 schrieb Bruce Pokras via use-livecode 
> :
> 
> 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.
> 

But after you've removed the inclusion of tsNET, did you also unloaded tsNET in 
the message box before you've created a new standalone? This is important.

The only difference between LC7 and LC8.1.9 i could imagine what could be the 
cause is tsNET which was introduced in 8.1.0.


___
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


Re: Functions running in IDE, but not running in standalone

2020-07-23 Thread Bruce Pokras via use-livecode
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 
>  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 executedispatch 
> "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 
>> :
>> 
>> 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 
>>>  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 
 :
 
 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 
>  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 
>> :
>> 
>> Bruce,
>> 
>> i might be wrong, but did you also include SSL in 
>> StandaloneSettings.
>> If i recall it correctly then SSL 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 
>>> mailto:use-livecode@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 

Re: Functions running in IDE, but not running in standalone

2020-07-21 Thread matthias rebbe via use-livecode
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 executedispatch 
"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 
> :
> 
> 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 
>>  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 
>>> :
>>> 
>>> 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 
  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 
> :
> 
> Bruce,
> 
> i might be wrong, but did you also include SSL in 
> StandaloneSettings.
> If i recall it correctly then SSL 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 
>> mailto:use-livecode@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 

Re: Functions running in IDE, but not running in standalone

2020-07-21 Thread Bruce Pokras via use-livecode
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 
>  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 
>> :
>> 
>> 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 
>>>  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 
 :
 
 Bruce,
 
 i might be wrong, but did you also include SSL in 
 StandaloneSettings.
 If i recall it correctly then SSL 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 
> mailto:use-livecode@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@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
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> 

Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread matthias rebbe via use-livecode
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 
> :
> 
> 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 
>>  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 
>>> :
>>> 
>>> Bruce,
>>> 
>>> i might be wrong, but did you also include SSL in 
>>> StandaloneSettings.
>>> If i recall it correctly then SSL 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 
 mailto:use-livecode@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@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
> 
> 
> ___
> 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


Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread Bruce Pokras via use-livecode
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 
>  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 
>> :
>> 
>> Bruce,
>> 
>> i might be wrong, but did you also include SSL in 
>> StandaloneSettings.
>> If i recall it correctly then SSL 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 
>>> mailto:use-livecode@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@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


___
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


Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread matthias rebbe via use-livecode
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 
> :
> 
> Bruce,
> 
> i might be wrong, but did you also include SSL in 
> StandaloneSettings.
> If i recall it correctly then SSL 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 
>> mailto:use-livecode@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@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


Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread matthias rebbe via use-livecode
Bruce,

i might be wrong, but did you also include SSL in StandaloneSettings.
If i recall it correctly then SSL 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 
> mailto:use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread Bruce Pokras via use-livecode
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!

=
Error from running Patent Grabber’s "Get Biblio +" report:

Executing at 12:56:56 PM on Monday, July 20, 2020
Type: Function: error in function handler
Object: card id 3946 of stack "/Users/BruceiMac/Documents/Revolution/Projects 
461/Patent Grabber 6.4.4-035/MacOSX/Patent Grabber 
6.4.4-03.app/Contents/MacOS/Patent Grabber 6.4.4-03"
Line Num: 2840
Hint: libURLLastRHHeaders

My comments: The libURLLastRHHeaders is used by Patent Grabber to determine 
whether a server at the European Patent Office is restricting bandwidth. In 
such cases, Patent Grabber waits longer between queries. Works fine in the IDE, 
of course.

-
Here is a real frustrating thing. The first execution error that the Bug 
Reports generates is one that is like the two above.That’s fine. But after that 
it produces what might be an infinite number of execution errors like the 
following:

Executing at 3:46:29 PM on Monday, July 20, 2020
Type: Handler: error in statement
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: 12
Hint: errorDialog

My comments: There is no errorDialog command in the stack script. In fact, line 
12 of the stack script is an "end if" which is part of a preOpenStack handler 
to center the stack on the screen.
===

I have to force-quit the standalone to get out of this infinite loop! This 
whole thing is very weird and very frustrating!

Regards,

Bruce

> On Jul 19, 2020, at 3:16 PM, matthias rebbe via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Bruce,
> 
> did you already try the RemoteDebugger to debug your standalone?
> 
> http://lessons.livecode.com/m/4071/l/698439-using-the-remote-debugger 
> 
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 19.07.2020 um 20:17 schrieb Bruce Pokras via use-livecode 
>> :
>> 
>> I am having a very frustrating experience. I have an app called Patent 
>> Grabber that is for downloading and searching for patents and published 
>> patent applications. A user reported that one feature of Patent Grabber was 
>> not working. That was the Abstract Report which takes a list of US patent 
>> numbers and downloads basic information about each, and combines all of this 
>> information into a single HTML file.
>> 
>> When I tried the Abstract Report in the stack from which Patent Grabber was 
>> compiled, the Abstract Report ran fine. However, when I saved the stack as a 
>> standalone the Abstract Report did not run. The standalone was NOT frozen. I 
>> could immediately run other features without problem.
>> 
>> Since the Abstract Report uses several stack-level functions, I tried adding 
>> some “answer” alerts to try to find the bottleneck. All of the “answer” 
>> alerts came back under the IDE, and the Abstract Report ran as expected. 
>> However, in the standalone, the first couple “answer” alerts came back, but 
>> then NOTHING. It was the “answer” alert that I added at the start of a 
>> function called getBiblio() that did not come back, and the Abstract Report 
>> stopped running.
>> 
>> Now the getBiblio() function is fairly complex. So I replaced it with a 
>> three-line function whose first line was an “answer” alert to tell me that 
>> the function was running. Under the IDE the “answer” alert came back, but in 
>> the standalone, nothing! 
>> 
>> Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I 
>> also tried compiling the standalone under LC 8.1.9 with the same result. 
>> However, when I saved the stack in Livecode 7.0 format, and compiled the 
>> standalone using Livecode 7.1.4, all of the “answer” alerts came back and 
>> the Abstract Report worked fine!
>> 
>> Any thoughts about this would be greatly appreciated!
>> 
>> Regards,
>> 
>> Bruce Pokras
>> ___
>> 

Re: Functions running in IDE, but not running in standalone

2020-07-20 Thread Bruce Pokras via use-livecode
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!

=
Error from running Patent Grabber’s "Get Biblio +" report:

Executing at 12:56:56 PM on Monday, July 20, 2020
Type: Function: error in function handler
Object: card id 3946 of stack "/Users/BruceiMac/Documents/Revolution/Projects 
461/Patent Grabber 6.4.4-035/MacOSX/Patent Grabber 
6.4.4-03.app/Contents/MacOS/Patent Grabber 6.4.4-03"
Line Num: 2840
Hint: libURLLastRHHeaders

My comments: The libURLLastRHHeaders is used by Patent Grabber to determine 
whether a server at the European Patent Office is restricting bandwidth. In 
such cases, Patent Grabber waits longer between queries. Works fine in the IDE, 
of course.

-
Here is a real frustrating thing. The first execution error that the Bug 
Reports generates is one that is like the two above.That’s fine. But after that 
it produces what might be an infinite number of execution errors like the 
following:

Executing at 3:46:29 PM on Monday, July 20, 2020
Type: Handler: error in statement
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: 12
Hint: errorDialog

My comments: There is no errorDialog command in the stack script. In fact, line 
12 of the stack script is an "end if" which is part of a preOpenStack handler 
to center the stack on the screen.
===

I have to force-quit the standalone to get out of this infinite loop! This 
whole thing is very weird and very frustrating!

Regards,

Bruce

> On Jul 19, 2020, at 3:16 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Bruce,
> 
> did you already try the RemoteDebugger to debug your standalone?
> 
> http://lessons.livecode.com/m/4071/l/698439-using-the-remote-debugger
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 19.07.2020 um 20:17 schrieb Bruce Pokras via use-livecode 
>> :
>> 
>> I am having a very frustrating experience. I have an app called Patent 
>> Grabber that is for downloading and searching for patents and published 
>> patent applications. A user reported that one feature of Patent Grabber was 
>> not working. That was the Abstract Report which takes a list of US patent 
>> numbers and downloads basic information about each, and combines all of this 
>> information into a single HTML file.
>> 
>> When I tried the Abstract Report in the stack from which Patent Grabber was 
>> compiled, the Abstract Report ran fine. However, when I saved the stack as a 
>> standalone the Abstract Report did not run. The standalone was NOT frozen. I 
>> could immediately run other features without problem.
>> 
>> Since the Abstract Report uses several stack-level functions, I tried adding 
>> some “answer” alerts to try to find the bottleneck. All of the “answer” 
>> alerts came back under the IDE, and the Abstract Report ran as expected. 
>> However, in the standalone, the first couple “answer” alerts came back, but 
>> then NOTHING. It was the “answer” alert that I added at the start of a 
>> function called getBiblio() that did not come back, and the Abstract Report 
>> stopped running.
>> 
>> Now the getBiblio() function is fairly complex. So I replaced it with a 
>> three-line function whose first line was an “answer” alert to tell me that 
>> the function was running. Under the IDE the “answer” alert came back, but in 
>> the standalone, nothing! 
>> 
>> Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I 
>> also tried compiling the standalone under LC 8.1.9 with the same result. 
>> However, when I saved the stack in Livecode 7.0 format, and compiled the 
>> standalone using Livecode 7.1.4, all of the “answer” alerts came back and 
>> the Abstract Report worked fine!
>> 
>> Any thoughts about this would be greatly appreciated!
>> 
>> Regards,
>> 
>> Bruce Pokras
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and 

Re: Functions running in IDE, but not running in standalone

2020-07-19 Thread Curry Kenworthy via use-livecode


Bruce:

> However, when I saved the stack as a standalone
> the Abstract Report did not run.

> Abstract Report which takes a list of US patent numbers
> and downloads basic information about each

> I tried adding some “answer” alerts to try to find the bottleneck.

You are using a logical method so far to narrow down the problem. That's 
good. But now you just have to keep going, and FOLLOW THROUGH. Don't 
stop half way. Keep narrowing it down and start profiling your bug.


If Livecode encounters a runtime error that is not handled, it will stop 
executing the script. When it does that, LC sends a message with the 
error dialog information.


In the IDE, you usually (but not always) see a helpful dialog or script 
debug when hitting an error. But in a standalone, you have several 
options too - you can choose to include error reporting, you can handle 
the message yourself, or you can use the Remote Debugger as mentioned, 
which often (but again, not always) helps.


Using answer (or a log file) is another valid option (especially for the 
"not always" cases where LC debugging falls short!) but use it 
correctly. Make sure you've really narrowed it down to the offending 
line; don't make too many assumptions about which is the offending line 
of code without proving it.


The error reporting might give you the line number and error cause. Or 
you can add another answer to verify your best candidate.


Standalone versus IDE problems often boil down to a few areas: file 
locations, standalone settings and inclusions, folder permissions, app 
permissions, and so on. Sometimes it's the user's fault, other times an 
LC bug/feature/glitch.


> using Livecode 7.1.4, all of the “answer” alerts came back
> and the Abstract Report worked fine!

Given that you're downloading things, I would check inclusions and 
tsNet, plus your file/folder locations. Always try to keep the IDE and 
standalone code/experience as close to each other as possible, to 
minimize headaches!


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/


___
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


Re: Functions running in IDE, but not running in standalone

2020-07-19 Thread matthias rebbe via use-livecode
Bruce,

did you already try the RemoteDebugger to debug your standalone?

http://lessons.livecode.com/m/4071/l/698439-using-the-remote-debugger



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 19.07.2020 um 20:17 schrieb Bruce Pokras via use-livecode 
> :
> 
> I am having a very frustrating experience. I have an app called Patent 
> Grabber that is for downloading and searching for patents and published 
> patent applications. A user reported that one feature of Patent Grabber was 
> not working. That was the Abstract Report which takes a list of US patent 
> numbers and downloads basic information about each, and combines all of this 
> information into a single HTML file.
> 
> When I tried the Abstract Report in the stack from which Patent Grabber was 
> compiled, the Abstract Report ran fine. However, when I saved the stack as a 
> standalone the Abstract Report did not run. The standalone was NOT frozen. I 
> could immediately run other features without problem.
> 
> Since the Abstract Report uses several stack-level functions, I tried adding 
> some “answer” alerts to try to find the bottleneck. All of the “answer” 
> alerts came back under the IDE, and the Abstract Report ran as expected. 
> However, in the standalone, the first couple “answer” alerts came back, but 
> then NOTHING. It was the “answer” alert that I added at the start of a 
> function called getBiblio() that did not come back, and the Abstract Report 
> stopped running.
> 
> Now the getBiblio() function is fairly complex. So I replaced it with a 
> three-line function whose first line was an “answer” alert to tell me that 
> the function was running. Under the IDE the “answer” alert came back, but in 
> the standalone, nothing! 
> 
> Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I 
> also tried compiling the standalone under LC 8.1.9 with the same result. 
> However, when I saved the stack in Livecode 7.0 format, and compiled the 
> standalone using Livecode 7.1.4, all of the “answer” alerts came back and the 
> Abstract Report worked fine!
> 
> Any thoughts about this would be greatly appreciated!
> 
> Regards,
> 
> Bruce Pokras
> ___
> 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


Functions running in IDE, but not running in standalone

2020-07-19 Thread Bruce Pokras via use-livecode
I am having a very frustrating experience. I have an app called Patent Grabber 
that is for downloading and searching for patents and published patent 
applications. A user reported that one feature of Patent Grabber was not 
working. That was the Abstract Report which takes a list of US patent numbers 
and downloads basic information about each, and combines all of this 
information into a single HTML file.

When I tried the Abstract Report in the stack from which Patent Grabber was 
compiled, the Abstract Report ran fine. However, when I saved the stack as a 
standalone the Abstract Report did not run. The standalone was NOT frozen. I 
could immediately run other features without problem.

Since the Abstract Report uses several stack-level functions, I tried adding 
some “answer” alerts to try to find the bottleneck. All of the “answer” alerts 
came back under the IDE, and the Abstract Report ran as expected. However, in 
the standalone, the first couple “answer” alerts came back, but then NOTHING. 
It was the “answer” alert that I added at the start of a function called 
getBiblio() that did not come back, and the Abstract Report stopped running.

Now the getBiblio() function is fairly complex. So I replaced it with a 
three-line function whose first line was an “answer” alert to tell me that the 
function was running. Under the IDE the “answer” alert came back, but in the 
standalone, nothing! 

Oh, and one more thing. This was all under Livecode 9.0.1 and also 9.6.0. I 
also tried compiling the standalone under LC 8.1.9 with the same result. 
However, when I saved the stack in Livecode 7.0 format, and compiled the 
standalone using Livecode 7.1.4, all of the “answer” alerts came back and the 
Abstract Report worked fine!

Any thoughts about this would be greatly appreciated!

Regards,

Bruce Pokras
___
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