Re: Strange syntax in new widgets!?

2024-05-25 Thread Klaus major-k via use-livecode
Hi Mike,

> Am 25.05.2024 um 17:07 schrieb Mike Kerner via use-livecode 
> :
> 
> a couple of notes on bob's comments:
> * the widgets were written by a third party using lcb. lc purchased the
> source.

AHA! 
Well, that explains the "inconsistency" in the syntax.

> unfortunately, the source is closed, so your ability to improve
> them is limited. (then there's the whole matter of the property editor and
> property inspector not being documented, which makes fixing the properties
> panels for the widgets much more interesting)
> * i've completely replaced the segmented control and the tab panel with a
> polyList, because it's more flexible, and i can get more functionality out
> of it.
> * give the polygrid a try. it is much, much faster than the datagrid, and i
> have not had any issues with missing functionality (at least for what i'm
> using it for).

Don't get me wrong, this is a wonderful widget and I replaced the DataGrid 
with a PolyList/PolyGrid wherever possible in my projects.

> On Fri, May 24, 2024 at 11:41 AM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Yes I was very surprised when first working with widgets how limited their
>> list of commands and properties are. The only widget I use is the segmented
>> control, and only then because the tab panel looks godaweful ugly in
>> Windows, and I can maintain visual constancy using the segmented control.

YES! Same here...

>> Well, also because I’m too lazy to implement any of the others just yet.
>> 
>> Don’t get me wrong, there are some great widgets. But trying to replicate
>> the functionality of datagrids, yeah not so much.
>> 
>> Bob S
Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Strange syntax in new widgets!?

2024-05-25 Thread Mike Kerner via use-livecode
a couple of notes on bob's comments:
* the widgets were written by a third party using lcb. lc purchased the
source. unfortunately, the source is closed, so your ability to improve
them is limited. (then there's the whole matter of the property editor and
property inspector not being documented, which makes fixing the properties
panels for the widgets much more interesting)
* i've completely replaced the segmented control and the tab panel with a
polyList, because it's more flexible, and i can get more functionality out
of it.
* give the polygrid a try. it is much, much faster than the datagrid, and i
have not had any issues with missing functionality (at least for what i'm
using it for).

On Fri, May 24, 2024 at 11:41 AM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Yes I was very surprised when first working with widgets how limited their
> list of commands and properties are. The only widget I use is the segmented
> control, and only then because the tab panel looks godaweful ugly in
> Windows, and I can maintain visual constancy using the segmented control.
> Well, also because I’m too lazy to implement any of the others just yet.
>
> Don’t get me wrong, there are some great widgets. But trying to replicate
> the functionality of datagrids, yeah not so much.
>
> Bob S
>
>
> On May 21, 2024, at 8:27 AM, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> It appears to me that the new widgets have been created by someone who has
> no
> or very little knowledge of LC.
>
> We have:
> ...
> delete line 2 of fld 1
> ...
> dispatch "DeleteLine" to group "DataGrid" with 2
> ...
>
> So why not create a more or less similar syntax for new widgets, so we
> don't have
> to use the dictionary for similar tasks. I don't get it...
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
> ___
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Strange syntax in new widgets!?

2024-05-24 Thread Bob Sneidar via use-livecode
Yes I was very surprised when first working with widgets how limited their list 
of commands and properties are. The only widget I use is the segmented control, 
and only then because the tab panel looks godaweful ugly in Windows, and I can 
maintain visual constancy using the segmented control. Well, also because I’m 
too lazy to implement any of the others just yet.

Don’t get me wrong, there are some great widgets. But trying to replicate the 
functionality of datagrids, yeah not so much.

Bob S


On May 21, 2024, at 8:27 AM, Klaus major-k via use-livecode 
 wrote:

It appears to me that the new widgets have been created by someone who has no
or very little knowledge of LC.

We have:
...
delete line 2 of fld 1
...
dispatch "DeleteLine" to group "DataGrid" with 2
...

So why not create a more or less similar syntax for new widgets, so we don't 
have
to use the dictionary for similar tasks. I don't get it...


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de

___
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: Strange syntax in new widgets!?

2024-05-21 Thread Klaus major-k via use-livecode
Hi Bob,

> Am 21.05.2024 um 17:09 schrieb Bob Sneidar via use-livecode 
> :
> 
> I find a lot of the widget properties less than useful. Try setting the 
> widths of all the tabs of a segmented control to a specified width based upon 
> the total width of the widget.

no, I won't! :-D

> Bob S
> 
> On May 21, 2024, at 7:48 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> this came up in the LC forum: How can I delete a line in a PolyGrid?
> "deleteline" or something did not work, so I searched the dictionary
> and found that one needs to set a PROPERTY to do so:
> ...
> put 2 into tLine
> set the pgDeleteRow of widget "PolyGrid" to tLine
> ...

and to make the confusion complete we need to:
...
put 2 into tLine
set the deleteItem of widget "PolyList" to tLine
...
for PolyLists.

> Very intuitive in my opinion. NOT!
> Am I the only one who find this rather ridiculous? 8-)
> Come on Livecode, you can do better!

It appears to me that the new widgets have been created by someone who has no 
or very little knowledge of LC.

We have:
...
delete line 2 of fld 1
...
dispatch "DeleteLine" to group "DataGrid" with 2
...

So why not create a more or less similar syntax for new widgets, so we don't 
have 
to use the dictionary for similar tasks. I don't get it...


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Strange syntax in new widgets!?

2024-05-21 Thread Bob Sneidar via use-livecode
I find a lot of the widget properties less than useful. Try setting the widths 
of all the tabs of a segmented control to a specified width based upon the 
total width of the widget.

Bob S


On May 21, 2024, at 7:48 AM, Klaus major-k via use-livecode 
 wrote:

Hi firends,

this came up in the LC forum: How can I delete a line in a PolyGrid?

"deleteline" or something did not work, so I searched the dictionary
and found that one needs to set a PROPERTY to do so:
...
put 2 into tLine
set the pgDeleteRow of widget "PolyGrid" to tLine
...
Very intuitive in my opinion. NOT!

Am I the only one who find this rather ridiculous? 8-)
Come on Livecode, you can do better!



Best

Klaus

___
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


Strange syntax in new widgets!?

2024-05-21 Thread Klaus major-k via use-livecode
Hi firends,

this came up in the LC forum: How can I delete a line in a PolyGrid?

"deleteline" or something did not work, so I searched the dictionary 
and found that one needs to set a PROPERTY to do so:
...
put 2 into tLine
set the pgDeleteRow of widget "PolyGrid" to tLine
...
Very intuitive in my opinion. NOT!

Am I the only one who find this rather ridiculous? 8-)
Come on Livecode, you can do better!



Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "normal" Android app icon looks strange in LC 9.6.9 rc1

2022-10-12 Thread Klaus major-k via use-livecode
Hi Panos,

> Am 12.10.2022 um 16:18 schrieb panagiotis m via use-livecode 
> :
> 
> Hello Klaus,
> 
> Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive
> icons.
> 
> I guess you see this difference because either of these has changed:
> - the android device
> - the android version on the same device
> - the default launcher app
> - something else :)
> 
> I believe that if you rebuild the same app with 9.6.8 you'll see the same
> results as with 9.6.9 rc1 if you deploy to the same android device.

OK, anyway, I'll vote for "something else" :-D
Thanks!

> Kind regards,
> Panos

Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "normal" Android app icon looks strange in LC 9.6.9 rc1

2022-10-12 Thread panagiotis m via use-livecode
Hello Klaus,

Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive
icons.

I guess you see this difference because either of these has changed:

- the android device
- the android version on the same device
- the default launcher app
- something else :)

I believe that if you rebuild the same app with 9.6.8 you'll see the same
results as with 9.6.9 rc1 if you deploy to the same android device.

Kind regards,
Panos


On Wed, 12 Oct 2022 at 16:13, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Panos,
>
> > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hello Klaus,
> >
> > What you see is the expected result. In fact, this is the reason one has
> to
> > use adaptive icons. You can use adaptive icons for non Google Play Store
> > apps as well.
> >
> > So, when you use a legacy icon, which is a square png, this does not
> > guarantee that the app icon in the Home screen will appear as a square
> > icon. If the app launcher shows all icons as e.g. circle icons, or as
> round
> > rectangles, then there are two possible outcomes when you provide a
> legacy
> > icon:
> > - either your app will stand out from the others (in a negative sense)
> > because it will appear as the square icon among circle icons
> > - or your app icon will appear as a circle that has the original square
> > icon in it.
> > I hope this makes sense :)
>
> yes, perfectly, thank you!
>
> So LC 9.6.8 did not behave as it should?
> I mean the legacy icon looked as exspected on Android in 9.6.8
> and I did not change anythings since then, read update Android Studio
> or something.
>
> > Kind regards,
> > Panos
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> 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: "normal" Android app icon looks strange in LC 9.6.9 rc1

2022-10-12 Thread Klaus major-k via use-livecode
Hi Panos,

> Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode 
> :
> 
> Hello Klaus,
> 
> What you see is the expected result. In fact, this is the reason one has to
> use adaptive icons. You can use adaptive icons for non Google Play Store
> apps as well.
> 
> So, when you use a legacy icon, which is a square png, this does not
> guarantee that the app icon in the Home screen will appear as a square
> icon. If the app launcher shows all icons as e.g. circle icons, or as round
> rectangles, then there are two possible outcomes when you provide a legacy
> icon:
> - either your app will stand out from the others (in a negative sense)
> because it will appear as the square icon among circle icons
> - or your app icon will appear as a circle that has the original square
> icon in it.
> I hope this makes sense :)

yes, perfectly, thank you!

So LC 9.6.8 did not behave as it should?
I mean the legacy icon looked as exspected on Android in 9.6.8
and I did not change anythings since then, read update Android Studio 
or something.

> Kind regards,
> Panos

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "normal" Android app icon looks strange in LC 9.6.9 rc1

2022-10-12 Thread panagiotis m via use-livecode
Hello Klaus,

What you see is the expected result. In fact, this is the reason one has to
use adaptive icons. You can use adaptive icons for non Google Play Store
apps as well.

So, when you use a legacy icon, which is a square png, this does not
guarantee that the app icon in the Home screen will appear as a square
icon. If the app launcher shows all icons as e.g. circle icons, or as round
rectangles, then there are two possible outcomes when you provide a legacy
icon:

- either your app will stand out from the others (in a negative sense)
because it will appear as the square icon among circle icons
- or your app icon will appear as a circle that has the original square
icon in it.

I hope this makes sense :)

Kind regards,
Panos
--

On Wed, 12 Oct 2022 at 15:40, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi friends,
>
> the subject says it all, and here a screenshot:
> 
>
> LC 9.6.9 rc 1 on macOS 12.6.
>
> I remembered a posting on this list, that one need to first click
> "Adaptive icon"
> and then back to "Icon" to force the correct creation of the icon from a
> PNG file.
> Obviously this doesnt work
>
> Anyway, can I also use an "Adaptive icon" if the app is not meant for the
> Google Play Store?
> Not sure I remebered correctly in this respect.
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> 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


"normal" Android app icon looks strange in LC 9.6.9 rc1

2022-10-12 Thread Klaus major-k via use-livecode
Hi friends,

the subject says it all, and here a screenshot:


LC 9.6.9 rc 1 on macOS 12.6.

I remembered a posting on this list, that one need to first click "Adaptive 
icon" 
and then back to "Icon" to force the correct creation of the icon from a PNG 
file.
Obviously this doesnt work

Anyway, can I also use an "Adaptive icon" if the app is not meant for the 
Google Play Store?
Not sure I remebered correctly in this respect.


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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


Strange thing: older App Store app fullscreen shown on iOS 15.2

2021-12-24 Thread William de Smet via use-livecode
Hi there,

I got a new iPad 2021 with iOS 15.2 (10.2 inch) and downloaded some of my
own older apps on it from the App Store.
These apps have been there for several years and the last update was from
2019.
I noticed that these apps are shown fullscreen and that is strange because
none of these apps contain fullscreen scripting.
They were all made for the 9.7 inch iPads.

When I put a test app on it with LC 9.9.6 and Xcode13.2  the app is not
shown full screen.

Is this Apple and iOS 15?
Does iOS 15 show apps from the App Store fullscreen?



greetings,

William
___
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: Strange closeStack behavior

2021-10-04 Thread Bob Sneidar via use-livecode
Okay, so I've come up with a relatively simple way to go about this. The 
problem is that when in standalone mode, closeStack does not close the splash 
stack, so the app keeps running even though there are no open windows, so I 
need to quit when the mainStack closes. 

But in Development mode, I don't want to quit because THEN Livecode quits, so I 
need to use close stack. 

So I put this code in the Mainstack's script and it seems to do the trick. 

on closeStackRequest
   put getParentStack(the long id of the target) into tParentStack
   
   if the short name of the target is "Main" then
  dispatch resetMainForm to the target
   else
  dispatch "clearForm" to tParentStack
   end if
   
   save stack tParentStack
   
   if the environment is not "Development" then
  send "quit" to me in 0 seconds
   else
  send "close stack tParentStack" to me in 0 seconds
   end if
   
   pass closeStackRequest
END closeStackRequest

BOB S
 

> On Oct 4, 2021, at 14:14 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Got it thanks. That explains why I cannot even trap for closeStackRequest int 
> othe substack script. The really odd thing is I can in the message box enter 
> "close stack Time Calculator" and it closes without even bothering to ask if 
> I want to save it, even when it is "dirty". 
> 
> I was thinking of checking the dirty flag on idle, with a constant or 
> property to enable or disable auto save, then check for the dirty flag on 
> idle + time delay and auto save the stack. 
> 
> This really is only an issue with development. It's a hassle to switch to the 
> pointer tool, save the substack then switch back to the browse tool. 
> 
> I complained about this behavior a couple times, but there really is no 
> graceful way to do this without some kind of a kludge. 
> 
> Thanks for the suggestion. 
> 
> Bob S


___
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: Strange closeStack behavior

2021-10-04 Thread Bob Sneidar via use-livecode
Got it thanks. That explains why I cannot even trap for closeStackRequest int 
othe substack script. The really odd thing is I can in the message box enter 
"close stack Time Calculator" and it closes without even bothering to ask if I 
want to save it, even when it is "dirty". 

I was thinking of checking the dirty flag on idle, with a constant or property 
to enable or disable auto save, then check for the dirty flag on idle + time 
delay and auto save the stack. 

This really is only an issue with development. It's a hassle to switch to the 
pointer tool, save the substack then switch back to the browse tool. 

I complained about this behavior a couple times, but there really is no 
graceful way to do this without some kind of a kludge. 

Thanks for the suggestion. 

Bob S


> On Oct 4, 2021, at 10:46 , J. Landman Gay via use-livecode 
>  wrote:
> 
> On 10/4/21 12:14 PM, Bob Sneidar via use-livecode wrote:
>> The stack in question is the only substack of a couple without a custom 
>> menu, so I am wondering if the last stack with a custom menu becomes the 
>> topStack??
> 
> If there is no custom menu then LC's menu takes over, and that's the one that 
> triggers the dialog. You might be able to solve the problem by using a custom 
> menu without much in it, maybe just File and Edit menus.
> 
> If you're going to build a standalone then the problem shouldn't happen there 
> at all.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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: Strange closeStack behavior

2021-10-04 Thread J. Landman Gay via use-livecode

On 10/4/21 12:14 PM, Bob Sneidar via use-livecode wrote:

The stack in question is the only substack of a couple without a custom menu, 
so I am wondering if the last stack with a custom menu becomes the topStack??


If there is no custom menu then LC's menu takes over, and that's the one that triggers the 
dialog. You might be able to solve the problem by using a custom menu without much in it, maybe 
just File and Edit menus.


If you're going to build a standalone then the problem shouldn't happen there 
at all.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Strange closeStack behavior

2021-10-04 Thread Bob Sneidar via use-livecode
So my only solution I can come up with to keep this from happening is to 
disable the Close Window control, then add a button that saves the stack then 
closes it. It's ugly, but what else can I do. For my part, if a stack is a 
substack of a mainstack and I close it, the Save dialog should not present 
itself. I say that because if I manually save the substack, the splash dialog 
seems to indicate it is saving the mainstack and under it the list of all the 
substacks. 

Bob S


> On Oct 4, 2021, at 09:49 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Okay, so I went through every closeStack and closeStackRequest handler in ALL 
> my stacks and libraries and commented out the handlers. The problem persists. 
> The stack in question is the only substack of a couple without a custom menu, 
> so I am wondering if the last stack with a custom menu becomes the topStack?? 
> 
> Bob S
> 
> 
>> On Oct 4, 2021, at 08:30 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Ohhh good suggestion I'll do that. 
>> 
>> Bob S
>> 
>> 
>>> On Oct 4, 2021, at 06:30 , Craig Newman via use-livecode 
>>>  wrote:
>>> 
>>> Hi.
>>> 
>>> Maybe just before the closeStackRequest line, ask for the topStack. Is it 
>>> possible  the mainStack is somehow in front?
>>> 
>>> Craig
>>> 
>>>> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode 
>>>>  wrote:
>>>> 
>>>> Hi all. 
>>>> 
>>>> Very strange. I have a substance belonging to a mainstack that has LOTS of 
>>>> other sub stacks. Only on this ONE substack, when I click the close button 
>>>> (the red dot in the upper left of a MacOS window) it asks me if I want to 
>>>> ave the stack, EVEN THOUGH I have a closeStackRequest in the stack script 
>>>> that saves the stack before passing closeStackRequest. 
>>>> 
>>>> If I don't save, or if I do save, the MAINSTACK closes, NOT just the 
>>>> substack! If I cancel nothing happens. 
>>>> 
>>>> What the.??? 
>>>> ___
>>>> 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


___
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: Strange closeStack behavior

2021-10-04 Thread Bob Sneidar via use-livecode
Okay, so I went through every closeStack and closeStackRequest handler in ALL 
my stacks and libraries and commented out the handlers. The problem persists. 
The stack in question is the only substack of a couple without a custom menu, 
so I am wondering if the last stack with a custom menu becomes the topStack?? 

Bob S


> On Oct 4, 2021, at 08:30 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Ohhh good suggestion I'll do that. 
> 
> Bob S
> 
> 
>> On Oct 4, 2021, at 06:30 , Craig Newman via use-livecode 
>>  wrote:
>> 
>> Hi.
>> 
>> Maybe just before the closeStackRequest line, ask for the topStack. Is it 
>> possible  the mainStack is somehow in front?
>> 
>> Craig
>> 
>>> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> Hi all. 
>>> 
>>> Very strange. I have a substance belonging to a mainstack that has LOTS of 
>>> other sub stacks. Only on this ONE substack, when I click the close button 
>>> (the red dot in the upper left of a MacOS window) it asks me if I want to 
>>> ave the stack, EVEN THOUGH I have a closeStackRequest in the stack script 
>>> that saves the stack before passing closeStackRequest. 
>>> 
>>> If I don't save, or if I do save, the MAINSTACK closes, NOT just the 
>>> substack! If I cancel nothing happens. 
>>> 
>>> What the.??? 
>>> ___
>>> 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: Strange closeStack behavior

2021-10-04 Thread Bob Sneidar via use-livecode
Ohhh good suggestion I'll do that. 

Bob S


> On Oct 4, 2021, at 06:30 , Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> Maybe just before the closeStackRequest line, ask for the topStack. Is it 
> possible  the mainStack is somehow in front?
> 
> Craig
> 
>> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi all. 
>> 
>> Very strange. I have a substance belonging to a mainstack that has LOTS of 
>> other sub stacks. Only on this ONE substack, when I click the close button 
>> (the red dot in the upper left of a MacOS window) it asks me if I want to 
>> ave the stack, EVEN THOUGH I have a closeStackRequest in the stack script 
>> that saves the stack before passing closeStackRequest. 
>> 
>> If I don't save, or if I do save, the MAINSTACK closes, NOT just the 
>> substack! If I cancel nothing happens. 
>> 
>> What the.??? 
>> ___
>> 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: Strange closeStack behavior

2021-10-04 Thread Craig Newman via use-livecode
Hi.

Maybe just before the closeStackRequest line, ask for the topStack. Is it 
possible  the mainStack is somehow in front?

Craig

> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> Very strange. I have a substance belonging to a mainstack that has LOTS of 
> other sub stacks. Only on this ONE substack, when I click the close button 
> (the red dot in the upper left of a MacOS window) it asks me if I want to ave 
> the stack, EVEN THOUGH I have a closeStackRequest in the stack script that 
> saves the stack before passing closeStackRequest. 
> 
> If I don't save, or if I do save, the MAINSTACK closes, NOT just the 
> substack! If I cancel nothing happens. 
> 
> What the.??? 
> ___
> 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


Strange closeStack behavior

2021-10-01 Thread Bob Sneidar via use-livecode
Hi all. 

Very strange. I have a substance belonging to a mainstack that has LOTS of 
other sub stacks. Only on this ONE substack, when I click the close button (the 
red dot in the upper left of a MacOS window) it asks me if I want to ave the 
stack, EVEN THOUGH I have a closeStackRequest in the stack script that saves 
the stack before passing closeStackRequest. 

If I don't save, or if I do save, the MAINSTACK closes, NOT just the substack! 
If I cancel nothing happens. 

What the.??? 
___
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: Strange script error - pass openStack

2021-09-23 Thread Curry Kenworthy via use-livecode


Craig:

> I will indeed get an error in the message box
> if I just invoke “openStack” directly.

So Peter, make sure whether this bug is your original issue,
and not just a red herring from the debugging itself.

Either way:

> 3. But the home.livecodescript code could be more robust.
> (Always ensure a target and owner exist before accessing properties.)
> You could QA report that as a possible IDE bug.

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: Strange script error - pass openStack

2021-09-23 Thread Craig Newman via use-livecode
Hi.

You are getting the error message in the message box?

If I make a new stack and place your handler in the card script, I will indeed 
get an error in the message box if I just invoke “openStack” directly. Of 
course, if I

“send openStack to this card”

all works fine. Placing a red dot should not be pertinent. Placing the handler 
in the stack script works as advertised. I guess I am not clear about what you 
are seeing.

Craig

> On Sep 23, 2021, at 8:31 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Peter:
> 
> > I’ve just tried making a new stack that has:
> 
> > on openStack
> >pass openStack
> > end openStack
> 
> 1. Make sure this openStack is in your first CARD's script.
> 
> > I poked into the script of the stack home.livecodescript
> > and see these lines
> 
> > if the short name of the owner of the target is not "Home" then
> > pass openStack
> > end if
> 
> 2. You (or another open stack) may have done something unusual.
> I'm not 100% convinced you've found the problem yet.
> There are a few inconsistent details in your message,
> plus it seems that LC did not pinpoint the offending code line?
> 
> 3. But the home.livecodescript code could be more robust.
> (Always ensure a target and owner exist before accessing properties.)
> You could QA report that as a possible IDE bug.
> 
> Meanwhile, don't pass openStack and see if you still get an error!
> 
> 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


___
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: Strange script error - pass openStack

2021-09-23 Thread Curry Kenworthy via use-livecode


Peter:

> I’ve just tried making a new stack that has:

> on openStack
>pass openStack
> end openStack

1. Make sure this openStack is in your first CARD's script.

> I poked into the script of the stack home.livecodescript
> and see these lines

> if the short name of the owner of the target is not "Home" then
> pass openStack
> end if

2. You (or another open stack) may have done something unusual.
I'm not 100% convinced you've found the problem yet.
There are a few inconsistent details in your message,
plus it seems that LC did not pinpoint the offending code line?

3. But the home.livecodescript code could be more robust.
(Always ensure a target and owner exist before accessing properties.)
You could QA report that as a possible IDE bug.

Meanwhile, don't pass openStack and see if you still get an error!

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


Strange script error - pass openStack

2021-09-22 Thread Peter Bogdanoff via use-livecode
In trying to debug a problem with my music program, at one point I got an error 
dialog:

Message execution error:
Error description: Object Name:
Hint: stack "/Applications/LiveCode Business 
9.6.1.app/Contents/Tools/Toolset/home.livecodescript”

So, I tried stepping through an openStack handler I have, and sure enough, once 
I passed the “pass openStack” I saw that same error in the Message box.

I’ve just tried making a new stack that has:

on openStack
   pass openStack
end openStack

with the red break on the line "pass openStack", and the same error showed in 
the Message box.

I poked into the script of the stack home.livecodescript and see these lines

if the short name of the owner of the target is not "Home" then
pass openStack
end if

I add a line before that: put “foo”
After the dialog is closed the Message box shows:
Message execution error:
Error description: Chunk: no target found

Question 1 — should this be happening—me seeing a livecodescript error—and can 
it affect my openStack handler, or the total operation of my stack?
Question 2 — should I be passing openStack on from my project? I’ve been doing 
that since HyperCard days and never thought a second about it.

LC 9.6.4

Peter Bogdanoff
___
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: [bug] strange memory leak in LC

2021-03-31 Thread Richard Gaskin via use-livecode

Andre Garzia wrote:

> The stack that was opened is a project that has many mainstacks in
> it’s stackfiles. Some of those stacks make use of the browser
> widget...

Don't know if this may be related to the leak, but worth heeding anyway 
- apparently WebKit has some serious issues, including an uncommonly 
nasty vulnerability:



   Apple releases emergency update for iPhones, iPads, and Apple Watch
   ...
   The vulnerability, discovered by Google's Threat Analysis Group,
   affects Apple's WebKit browser engine, and what makes this an
   urgent update is the fact that Apple claims the vulnerability
   is being actively exploited.

https://www.zdnet.com/article/apple-releases-emergency-update-for-iphones-ipads-and-apple-watch/

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: [bug] strange memory leak in LC

2021-03-31 Thread Andre Garzia via use-livecode
Hi Panos,

The stack that was opened is a project that has many mainstacks in it’s 
stackfiles. Some of those stacks make use of the browser widget but the stacks 
that were open during the problem were not using it. I don’t recall the 
dictionary being open at that time either. I simply killed LC and kept going 
on, I wish I took some more time to try to investigate it but the IDE was not 
responding.

I don’t use Safari so I can really tell anything about it leaking.

Best
A

> On 31 Mar 2021, at 15:22, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello all,
> 
> After a brief Google search it seems there are some other apps that have a
> similar memory leak after upgrading to Big Sur:
> 
> https://discussions.apple.com/thread/252276774
> https://discussions.apple.com/thread/252090206
> 
> The issue folks here (in this list) have mentioned does not seem to be
> specific to M1 macs. It seems specific to Big Sur, since Andrew mentioned
> he saw that in an iMac, and there are no M1 iMacs so far.
> 
> In the previous links people mention memory leaks in Safari. Do you also
> see a memory leak with Safari? Also, did you use a stack with a browser
> widget, when you experienced this issue? These 2 might be related.
> 
> Also, did you use (or did you leave open) the Dictionary stack? The
> Dictionary does use a browser widget.
> 
> So far we are not able to reproduce the issue, because we either run Big
> Sur on Parallels, and the VM is suspended when you choose "Sleep", or we
> connect to a remote M1 Mac mini via VNC, and the connection will be lost if
> we choose "Sleep" for this Mac.
> 
> Kind regards,
> Panos
> --
> 
> On Sat, 27 Mar 2021 at 06:59, Phil Davis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I created a little "leak test" stack that runs the "leaks" shell command
>> against the processID of the LC engine that runs the stack. It checks
>> for new leaks every 60 seconds and lists the number and size of each new
>> leak found. I'm running it in LC 9.6.1 on 3 Macs right now - Catalina,
>> High Sierra and Big Sur.
>> 
>> After about 30 minutes:
>> - LC on Big Sur (M1) has 10 leaks for a total of 688 bytes.
>> - LC on Catalina (Intel) has no leaks.
>> - LC on High Sierra (Intel) has no leaks.
>> 
>> Just FYI -
>> Phil Davis
>> 
>> 
>> On 3/26/21 7:33 PM, John Balgenorth via use-livecode wrote:
>>> I am not personally using Bug Sur but if you make a standalone does
>>> it leak  memory too or is this only with the development system?
>>> 
>>> JB
>>> 
 On Mar 26, 2021, at 7:29 PM, scott--- via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
 
 I’m running Big Sur and just got a warning from the OS that I was out
>> of application memory. Livecode was using 133.52 GB of memory.  It had been
>> open for a couple days but it wasn’t doing anything.
 --
 Scott Morrow
 
 Elementary Software
 (Now with 20% less chalk dust!)
 web   https://elementarysoftware.com/
 email sc...@elementarysoftware.com
 booth1-360-734-4701
 --
 
> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
> 
> Sean,
> 
> The stack was not running anything. It was simply opened. I don’t
>> believe it would leak like that. Anyway, I’m monitoring to see if it
>> happens again.
> 
> A
> 
>>> On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> Wow, Andre, that's impressive. That amounts to about 34MB per minute
>> over
>> 48hrs. I've had a pretty massive stack (226MB file at the moment) on
>> my Mac
>> sitting here over the last week. Looking in the activity monitor, LC
>> has
>> 987MB associated with it. and watching it over a period of time it
>> remains
>> stable and even went down a tiny bit.
>> 
>> I wonder if this is more an issue with Rosetta2 in this instance.
>> Maybe
>> something in LC leaks because of the Rosetta transformation of the
>> binary.
>> Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and
>> watch
>> them both for how much memory they expend over a period of time.
>> 
>> All the best with that.
>> 
>> Sean
>> 
>> On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big
>> Sur
>>> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened
>> for a
>>> couple days, I was working on a gaziliion stacks at the same time
>> and was
>>> not yet ready to close them.
>>> 
>>> The stacks were not doing anything, they were not running “send in
>> time”
>>> commands or doing any kind of processing, they were just opened.
>> Then macOS
>>> showed me a dialog I have never ever seen on macOS 10.x, a 

Re: [bug] strange memory leak in LC

2021-03-31 Thread panagiotis merakos via use-livecode
Hello all,

After a brief Google search it seems there are some other apps that have a
similar memory leak after upgrading to Big Sur:

https://discussions.apple.com/thread/252276774
https://discussions.apple.com/thread/252090206

The issue folks here (in this list) have mentioned does not seem to be
specific to M1 macs. It seems specific to Big Sur, since Andrew mentioned
he saw that in an iMac, and there are no M1 iMacs so far.

In the previous links people mention memory leaks in Safari. Do you also
see a memory leak with Safari? Also, did you use a stack with a browser
widget, when you experienced this issue? These 2 might be related.

Also, did you use (or did you leave open) the Dictionary stack? The
Dictionary does use a browser widget.

So far we are not able to reproduce the issue, because we either run Big
Sur on Parallels, and the VM is suspended when you choose "Sleep", or we
connect to a remote M1 Mac mini via VNC, and the connection will be lost if
we choose "Sleep" for this Mac.

Kind regards,
Panos
--

On Sat, 27 Mar 2021 at 06:59, Phil Davis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I created a little "leak test" stack that runs the "leaks" shell command
> against the processID of the LC engine that runs the stack. It checks
> for new leaks every 60 seconds and lists the number and size of each new
> leak found. I'm running it in LC 9.6.1 on 3 Macs right now - Catalina,
> High Sierra and Big Sur.
>
> After about 30 minutes:
> - LC on Big Sur (M1) has 10 leaks for a total of 688 bytes.
> - LC on Catalina (Intel) has no leaks.
> - LC on High Sierra (Intel) has no leaks.
>
> Just FYI -
> Phil Davis
>
>
> On 3/26/21 7:33 PM, John Balgenorth via use-livecode wrote:
> > I am not personally using Bug Sur but if you make a standalone does
> > it leak  memory too or is this only with the development system?
> >
> > JB
> >
> >> On Mar 26, 2021, at 7:29 PM, scott--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> I’m running Big Sur and just got a warning from the OS that I was out
> of application memory. Livecode was using 133.52 GB of memory.  It had been
> open for a couple days but it wasn’t doing anything.
> >> --
> >> Scott Morrow
> >>
> >> Elementary Software
> >> (Now with 20% less chalk dust!)
> >> web   https://elementarysoftware.com/
> >> email sc...@elementarysoftware.com
> >> booth1-360-734-4701
> >> --
> >>
> >>> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> Sean,
> >>>
> >>> The stack was not running anything. It was simply opened. I don’t
> believe it would leak like that. Anyway, I’m monitoring to see if it
> happens again.
> >>>
> >>> A
> >>>
> > On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>  Wow, Andre, that's impressive. That amounts to about 34MB per minute
> over
>  48hrs. I've had a pretty massive stack (226MB file at the moment) on
> my Mac
>  sitting here over the last week. Looking in the activity monitor, LC
> has
>  987MB associated with it. and watching it over a period of time it
> remains
>  stable and even went down a tiny bit.
> 
>  I wonder if this is more an issue with Rosetta2 in this instance.
> Maybe
>  something in LC leaks because of the Rosetta transformation of the
> binary.
>  Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and
> watch
>  them both for how much memory they expend over a period of time.
> 
>  All the best with that.
> 
>  Sean
> 
>  On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
>  use-livecode@lists.runrev.com> wrote:
> 
> > I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big
> Sur
> > on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened
> for a
> > couple days, I was working on a gaziliion stacks at the same time
> and was
> > not yet ready to close them.
> >
> > The stacks were not doing anything, they were not running “send in
> time”
> > commands or doing any kind of processing, they were just opened.
> Then macOS
> > showed me a dialog I have never ever seen on macOS 10.x, a memory
> > exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
> > memory, as in Gigabyte, as can be seen on this screenshot:
> >
> > http://andregarzia.com/img/shots/lc-memory-leak.png <
> > http://andregarzia.com/img/shots/lc-memory-leak.png>
> >
> > I remember things like the “default button” causing leaks due to the
> > animation and so on, but all I had was a bunch of custom stacks open
> and
> > the script editor focused. Thats it. It was open since yesterday.
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this 

Re: [bug] strange memory leak in LC

2021-03-28 Thread Andrew at MidWest Coast Media via use-livecode
Big Sur 11.0.1, LC 9.6rc3

LiveCode seems to become unresponsive when my iMac goes to sleep and then wakes 
up and logs in. Don’t have any recipe for it, but when I when I left it 
overnight it had completely taken over my machine this morning. 
https://www.dropbox.com/s/cl2htkbe6a3e7y8/memory_leak.png?dl=0

I have 40GB of physical RAM, but LC was trying to use almost 300GB (virtual?)

—Andrew Bell

> 
> From: Phil Davis 
> To: How to use LiveCode 
> Subject: Re: [bug] strange memory leak in LC
> Message-ID: <968340be-831e-f86f-7f1e-9cda1ed22...@pdslabs.net>
> Content-Type: text/plain; charset=utf-8
> 
> I created a little "leak test" stack that runs the "leaks" shell command
> against the processID of the LC engine that runs the stack. It checks
> for new leaks every 60 seconds and lists the number and size of each new
> leak found. I'm running it in LC 9.6.1 on 3 Macs right now - Catalina,
> High Sierra and Big Sur.
> 
> After about 30 minutes:
> - LC on Big Sur (M1) has 10 leaks for a total of 688 bytes.
> - LC on Catalina (Intel) has no leaks.
> - LC on High Sierra (Intel) has no leaks.
> 
> Just FYI -
> Phil Davis
> 
> 
> On 3/26/21 7:33 PM, John Balgenorth via use-livecode wrote:
>> I am not personally using Bug Sur but if you make a standalone does
>> it leak  memory too or is this only with the development system?
>> 
>> JB
>> 
>>> On Mar 26, 2021, at 7:29 PM, scott--- via use-livecode 
>>>  wrote:
>>> 
>>> ?I?m running Big Sur and just got a warning from the OS that I was out of 
>>> application memory. Livecode was using 133.52 GB of memory.  It had been 
>>> open for a couple days but it wasn?t doing anything.
>>> --
>>> Scott Morrow
>>> 
>>> Elementary Software
>>> (Now with 20% less chalk dust!)
>>> web   https://elementarysoftware.com/
>>> email sc...@elementarysoftware.com
>>> booth1-360-734-4701
>>> --
>>> 
>>>> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode 
>>>>  wrote:
>>>> 
>>>> Sean,
>>>> 
>>>> The stack was not running anything. It was simply opened. I don?t believe 
>>>> it would leak like that. Anyway, I?m monitoring to see if it happens again.
>>>> 
>>>> A
>>>> 
>>>>>> On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode 
>>>>>>  wrote:
>>>>> Wow, Andre, that's impressive. That amounts to about 34MB per minute over
>>>>> 48hrs. I've had a pretty massive stack (226MB file at the moment) on my 
>>>>> Mac
>>>>> sitting here over the last week. Looking in the activity monitor, LC has
>>>>> 987MB associated with it. and watching it over a period of time it remains
>>>>> stable and even went down a tiny bit.
>>>>> 
>>>>> I wonder if this is more an issue with Rosetta2 in this instance. Maybe
>>>>> something in LC leaks because of the Rosetta transformation of the binary.
>>>>> Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and 
>>>>> watch
>>>>> them both for how much memory they expend over a period of time.
>>>>> 
>>>>> All the best with that.
>>>>> 
>>>>> Sean
>>>>> 
>>>>> On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>>> I have no idea what happened. I?m running LC 9.6.2-rc-3 on macOS Big Sur
>>>>>> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
>>>>>> couple days, I was working on a gaziliion stacks at the same time and was
>>>>>> not yet ready to close them.
>>>>>> 
>>>>>> The stacks were not doing anything, they were not running ?send in time?
>>>>>> commands or doing any kind of processing, they were just opened. Then 
>>>>>> macOS
>>>>>> showed me a dialog I have never ever seen on macOS 10.x, a memory
>>>>>> exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
>>>>>> memory, as in Gigabyte, as can be seen on this screenshot:
>>>>>> 
>>>>>> http://andregarzia.com/img/shots/lc-memory-leak.png <
>>>>>> http://andregarzia.com/img/shots/lc-memory-leak.png>
>>>>>> 
>>>>&

Re: [bug] strange memory leak in LC

2021-03-26 Thread Phil Davis via use-livecode
I created a little "leak test" stack that runs the "leaks" shell command
against the processID of the LC engine that runs the stack. It checks
for new leaks every 60 seconds and lists the number and size of each new
leak found. I'm running it in LC 9.6.1 on 3 Macs right now - Catalina,
High Sierra and Big Sur.

After about 30 minutes:
- LC on Big Sur (M1) has 10 leaks for a total of 688 bytes.
- LC on Catalina (Intel) has no leaks.
- LC on High Sierra (Intel) has no leaks.

Just FYI -
Phil Davis


On 3/26/21 7:33 PM, John Balgenorth via use-livecode wrote:
> I am not personally using Bug Sur but if you make a standalone does
> it leak  memory too or is this only with the development system?
>
> JB
>
>> On Mar 26, 2021, at 7:29 PM, scott--- via use-livecode 
>>  wrote:
>>
>> I’m running Big Sur and just got a warning from the OS that I was out of 
>> application memory. Livecode was using 133.52 GB of memory.  It had been 
>> open for a couple days but it wasn’t doing anything.
>> --
>> Scott Morrow
>>
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-360-734-4701
>> --
>>
>>> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode 
>>>  wrote:
>>>
>>> Sean,
>>>
>>> The stack was not running anything. It was simply opened. I don’t believe 
>>> it would leak like that. Anyway, I’m monitoring to see if it happens again.
>>>
>>> A
>>>
> On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode 
>  wrote:
 Wow, Andre, that's impressive. That amounts to about 34MB per minute over
 48hrs. I've had a pretty massive stack (226MB file at the moment) on my Mac
 sitting here over the last week. Looking in the activity monitor, LC has
 987MB associated with it. and watching it over a period of time it remains
 stable and even went down a tiny bit.

 I wonder if this is more an issue with Rosetta2 in this instance. Maybe
 something in LC leaks because of the Rosetta transformation of the binary.
 Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and watch
 them both for how much memory they expend over a period of time.

 All the best with that.

 Sean

 On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
 use-livecode@lists.runrev.com> wrote:

> I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur
> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
> couple days, I was working on a gaziliion stacks at the same time and was
> not yet ready to close them.
>
> The stacks were not doing anything, they were not running “send in time”
> commands or doing any kind of processing, they were just opened. Then 
> macOS
> showed me a dialog I have never ever seen on macOS 10.x, a memory
> exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
> memory, as in Gigabyte, as can be seen on this screenshot:
>
> http://andregarzia.com/img/shots/lc-memory-leak.png <
> http://andregarzia.com/img/shots/lc-memory-leak.png>
>
> I remember things like the “default button” causing leaks due to the
> animation and so on, but all I had was a bunch of custom stacks open and
> the script editor focused. Thats it. It was open since yesterday.
> ___
> 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
> ___
> 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

-- 
Phil Davis
503-307-4363


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to 

Re: [bug] strange memory leak in LC

2021-03-26 Thread John Balgenorth via use-livecode
I am not personally using Bug Sur but if you make a standalone does
it leak  memory too or is this only with the development system?

JB

> On Mar 26, 2021, at 7:29 PM, scott--- via use-livecode 
>  wrote:
> 
> I’m running Big Sur and just got a warning from the OS that I was out of 
> application memory. Livecode was using 133.52 GB of memory.  It had been open 
> for a couple days but it wasn’t doing anything.
> --
> Scott Morrow
> 
> Elementary Software
> (Now with 20% less chalk dust!)
> web   https://elementarysoftware.com/
> email sc...@elementarysoftware.com
> booth1-360-734-4701
> --
> 
>> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode 
>>  wrote:
>> 
>> Sean,
>> 
>> The stack was not running anything. It was simply opened. I don’t believe it 
>> would leak like that. Anyway, I’m monitoring to see if it happens again.
>> 
>> A
>> 
 On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode 
  wrote:
>>> 
>>> Wow, Andre, that's impressive. That amounts to about 34MB per minute over
>>> 48hrs. I've had a pretty massive stack (226MB file at the moment) on my Mac
>>> sitting here over the last week. Looking in the activity monitor, LC has
>>> 987MB associated with it. and watching it over a period of time it remains
>>> stable and even went down a tiny bit.
>>> 
>>> I wonder if this is more an issue with Rosetta2 in this instance. Maybe
>>> something in LC leaks because of the Rosetta transformation of the binary.
>>> Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and watch
>>> them both for how much memory they expend over a period of time.
>>> 
>>> All the best with that.
>>> 
>>> Sean
>>> 
>>> On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur
 on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
 couple days, I was working on a gaziliion stacks at the same time and was
 not yet ready to close them.
 
 The stacks were not doing anything, they were not running “send in time”
 commands or doing any kind of processing, they were just opened. Then macOS
 showed me a dialog I have never ever seen on macOS 10.x, a memory
 exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
 memory, as in Gigabyte, as can be seen on this screenshot:
 
 http://andregarzia.com/img/shots/lc-memory-leak.png <
 http://andregarzia.com/img/shots/lc-memory-leak.png>
 
 I remember things like the “default button” causing leaks due to the
 animation and so on, but all I had was a bunch of custom stacks open and
 the script editor focused. Thats it. It was open since yesterday.
 ___
 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

___
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: [bug] strange memory leak in LC

2021-03-26 Thread scott--- via use-livecode
I’m running Big Sur and just got a warning from the OS that I was out of 
application memory. Livecode was using 133.52 GB of memory.  It had been open 
for a couple days but it wasn’t doing anything.
--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-360-734-4701
--

> On Mar 26, 2021, at 6:53 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Sean,
> 
> The stack was not running anything. It was simply opened. I don’t believe it 
> would leak like that. Anyway, I’m monitoring to see if it happens again.
> 
> A
> 
>> On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode 
>>  wrote:
>> 
>> Wow, Andre, that's impressive. That amounts to about 34MB per minute over
>> 48hrs. I've had a pretty massive stack (226MB file at the moment) on my Mac
>> sitting here over the last week. Looking in the activity monitor, LC has
>> 987MB associated with it. and watching it over a period of time it remains
>> stable and even went down a tiny bit.
>> 
>> I wonder if this is more an issue with Rosetta2 in this instance. Maybe
>> something in LC leaks because of the Rosetta transformation of the binary.
>> Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and watch
>> them both for how much memory they expend over a period of time.
>> 
>> All the best with that.
>> 
>> Sean
>> 
>> On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur
>>> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
>>> couple days, I was working on a gaziliion stacks at the same time and was
>>> not yet ready to close them.
>>> 
>>> The stacks were not doing anything, they were not running “send in time”
>>> commands or doing any kind of processing, they were just opened. Then macOS
>>> showed me a dialog I have never ever seen on macOS 10.x, a memory
>>> exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
>>> memory, as in Gigabyte, as can be seen on this screenshot:
>>> 
>>> http://andregarzia.com/img/shots/lc-memory-leak.png <
>>> http://andregarzia.com/img/shots/lc-memory-leak.png>
>>> 
>>> I remember things like the “default button” causing leaks due to the
>>> animation and so on, but all I had was a bunch of custom stacks open and
>>> the script editor focused. Thats it. It was open since yesterday.
>>> ___
>>> 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: [bug] strange memory leak in LC

2021-03-26 Thread Andre Garzia via use-livecode
Sean,

The stack was not running anything. It was simply opened. I don’t believe it 
would leak like that. Anyway, I’m monitoring to see if it happens again.

A

> On 26 Mar 2021, at 13:01, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Wow, Andre, that's impressive. That amounts to about 34MB per minute over
> 48hrs. I've had a pretty massive stack (226MB file at the moment) on my Mac
> sitting here over the last week. Looking in the activity monitor, LC has
> 987MB associated with it. and watching it over a period of time it remains
> stable and even went down a tiny bit.
> 
> I wonder if this is more an issue with Rosetta2 in this instance. Maybe
> something in LC leaks because of the Rosetta transformation of the binary.
> Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and watch
> them both for how much memory they expend over a period of time.
> 
> All the best with that.
> 
> Sean
> 
> On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur
>> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
>> couple days, I was working on a gaziliion stacks at the same time and was
>> not yet ready to close them.
>> 
>> The stacks were not doing anything, they were not running “send in time”
>> commands or doing any kind of processing, they were just opened. Then macOS
>> showed me a dialog I have never ever seen on macOS 10.x, a memory
>> exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
>> memory, as in Gigabyte, as can be seen on this screenshot:
>> 
>> http://andregarzia.com/img/shots/lc-memory-leak.png <
>> http://andregarzia.com/img/shots/lc-memory-leak.png>
>> 
>> I remember things like the “default button” causing leaks due to the
>> animation and so on, but all I had was a bunch of custom stacks open and
>> the script editor focused. Thats it. It was open since yesterday.
>> ___
>> 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: [bug] strange memory leak in LC

2021-03-26 Thread Sean Cole (Pi) via use-livecode
Wow, Andre, that's impressive. That amounts to about 34MB per minute over
48hrs. I've had a pretty massive stack (226MB file at the moment) on my Mac
sitting here over the last week. Looking in the activity monitor, LC has
987MB associated with it. and watching it over a period of time it remains
stable and even went down a tiny bit.

I wonder if this is more an issue with Rosetta2 in this instance. Maybe
something in LC leaks because of the Rosetta transformation of the binary.
Perhaps, as a test, open the same stack on a non-AppleSilicon Mac and watch
them both for how much memory they expend over a period of time.

All the best with that.

Sean

On Fri, 26 Mar 2021 at 10:03, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur
> on M1 ISA (so it is running under Rosetta 2). I kept the IDE opened for a
> couple days, I was working on a gaziliion stacks at the same time and was
> not yet ready to close them.
>
> The stacks were not doing anything, they were not running “send in time”
> commands or doing any kind of processing, they were just opened. Then macOS
> showed me a dialog I have never ever seen on macOS 10.x, a memory
> exhaustion dialog. Looking closer at it, LiveCode was using 100 GB of
> memory, as in Gigabyte, as can be seen on this screenshot:
>
> http://andregarzia.com/img/shots/lc-memory-leak.png <
> http://andregarzia.com/img/shots/lc-memory-leak.png>
>
> I remember things like the “default button” causing leaks due to the
> animation and so on, but all I had was a bunch of custom stacks open and
> the script editor focused. Thats it. It was open since yesterday.
> ___
> 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


[bug] strange memory leak in LC

2021-03-26 Thread Andre Garzia via use-livecode
I have no idea what happened. I’m running LC 9.6.2-rc-3 on macOS Big Sur on M1 
ISA (so it is running under Rosetta 2). I kept the IDE opened for a couple 
days, I was working on a gaziliion stacks at the same time and was not yet 
ready to close them.

The stacks were not doing anything, they were not running “send in time” 
commands or doing any kind of processing, they were just opened. Then macOS 
showed me a dialog I have never ever seen on macOS 10.x, a memory exhaustion 
dialog. Looking closer at it, LiveCode was using 100 GB of memory, as in 
Gigabyte, as can be seen on this screenshot:

http://andregarzia.com/img/shots/lc-memory-leak.png 


I remember things like the “default button” causing leaks due to the animation 
and so on, but all I had was a bunch of custom stacks open and the script 
editor focused. Thats it. It was open since yesterday. 
___
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: Strange bug

2020-11-24 Thread Bob Sneidar via use-livecode
I will attest to the fact that strange things happen with drag drop and not 
just with Livecode. For instance if I drag a PDF to a mounted share, often, but 
not every time, Mail becomes unresponsive and I have to quit it and relaunch 
it. Also when drag dropping files from the Finder onto a Livecode object I get 
the “snap back” visual, and then the next drag drop operation will not work 
until I click the title bar of the LC window I am dragging to, or else move the 
window in some way. 

Bob S


> On Nov 24, 2020, at 4:32 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> FYI: I found a very strange and serious bug, if you have a minute, please 
> take a look:
> <https://quality.livecode.com/show_bug.cgi?id=22992>
> A real showstopper in my opinion!
> 
> With an example stack (in my dropbox, my browser does not allow me to select 
> a file as attachment!?). Shows the problem clearly on a Mac.
> May probably work correctly on Windows, maybe not.
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: Strange bug

2020-11-24 Thread Richmond via use-livecode

Yes, as described (LC 9.6.1, macOS 11.1 Beta).

On 24.11.20 14:32, Klaus major-k via use-livecode wrote:

Hi friends,

FYI: I found a very strange and serious bug, if you have a minute, please take 
a look:
<https://quality.livecode.com/show_bug.cgi?id=22992>
A real showstopper in my opinion!

With an example stack (in my dropbox, my browser does not allow me to select
a file as attachment!?). Shows the problem clearly on a Mac.
May probably work correctly on Windows, maybe not.


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Strange bug

2020-11-24 Thread Klaus major-k via use-livecode
Hi Matthias,

> Am 24.11.2020 um 14:02 schrieb Klaus major-k :
> 
> Hi Matthias,
> 
>> Am 24.11.2020 um 13:46 schrieb improve-revolution-010...@m-r-d.de:
>> 
>> May this is because the drapDrop message is still processed or how this is 
>> called in english.
> 
> yes, that is what I think, too.
> 
>> As a workaround couldn't you use something like this
>> send "importMe" && pURL&&",Rental M1" to me in 50 milliseconds 
>> in the DragDrop handler instead of calling importMe directly?
> 
> thank you, will try this.
> 
> I already tried this as first line in the importme handler:
> -> wait 1 secs with messages
> But that did not help.
> 
>> Matthias Rebbe

YES, that did the trick, thanks a lot! :-)
Will add this as a comment to the bug report.


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Strange bug

2020-11-24 Thread Klaus major-k via use-livecode



> Am 24.11.2020 um 13:32 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> FYI: I found a very strange and serious bug, if you have a minute, please 
> take a look:
> <https://quality.livecode.com/show_bug.cgi?id=22992>
> A real showstopper in my opinion!
> 
> With an example stack (in my dropbox, my browser does not allow me to select 
> a file as attachment!?). Shows the problem clearly on a Mac.
> May probably work correctly on Windows, maybe not.
> 
> 
> Best
> 
> Klaus

just tested, this is also already happening in LC 5.02!?

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


Strange bug

2020-11-24 Thread Klaus major-k via use-livecode
Hi friends,

FYI: I found a very strange and serious bug, if you have a minute, please take 
a look:
<https://quality.livecode.com/show_bug.cgi?id=22992>
A real showstopper in my opinion!

With an example stack (in my dropbox, my browser does not allow me to select 
a file as attachment!?). Shows the problem clearly on a Mac.
May probably work correctly on Windows, maybe not.


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread Heriberto Torrado via use-livecode
Thanks Mattias,

 

I appreciate your knowledge.

 

You are very useful and kind (as always).

 

Best,

Hery

 

From: matthias_livecode_150...@m-r-d.de  
Sent: Thursday, August 27, 2020 12:09 PM
To: How to use LiveCode 
Cc: htorr...@networkdreams.net
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

 

Heriberto,

 

i just tried the ODBC drivers from Oracle here with MacOS X and MariaDB.

 

If you would like i can list the needed steps:

 

1. download and install the drivers for your operating system

 

2. Open ODBC Manager on Mac, i am not sure how this is called in English for 
the Windows app, but if you search for ODBC in the search field of Windows 
you'll get the configuration tool listed.

 

3. Add a new User or System DSN. You can select between Ansi and Unicode driver

 

4.1 In the following configuration dialog enter a name for the DNS, e.g. 
HeribertoDSN

4.2 Add the Keyword 'SERVER' and add the name or the ip address of the DB 
Server as value, e.g. HeribertoDB

If the DB is not using the standard port, then please add the port also. e.g. 
192.168.1.1:3308

4.3 Add the Keyword DATABASE and enter the name of the DB as value

There are several other keywords you can use. But the above are the basic ones 
you need.

 

now use 

revOpenDatabase("odbc", "HeribertoDSN","HeribertoDB",dbUsername,dbPassword,)

 

replace dbUsername and dbPassword with the user credentials for the DB.

 

You could also add the keywords USERNAME and PASSWORD in the DSN configuration 
from step 4, but i would do that only for testing.

 

Btw. the documentation for the ODBC driver can be found here.

 

Regards,

 

Matthias Rebbe
Life Is Too Short For Boring Code





Am 27.08.2020 um 01:03 schrieb Heriberto Torrado mailto:htorr...@networkdreams.net> >:

 

Hi Matthias,

Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
MySQL client?

Best,
Hery

-Original Message-
From: use-livecode mailto:use-livecode-boun...@lists.runrev.com> > On Behalf Of matthias rebbe 
via use-livecode
Sent: Wednesday, August 26, 2020 10:42 AM
To: How to use LiveCode mailto:use-livecode@lists.runrev.com> >
Cc: matthias_livecode_150...@m-r-d.de 
<mailto:matthias_livecode_150...@m-r-d.de> 
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

There are also free MySQL Connectors/ODBC available for different operating 
systems. The current ones are for Server 8.0,5.7 and 5.6.

https://dev.mysql.com/downloads/connector/odbc/

They connectors can be downloaded without the need to be logged in. So no need 
for an account registration at dev.mysql.com

Maybe this is an option instead of lowering the encryption level?

Matthias
-
Matthias Rebbe
Life Is Too Short For Boring Code




Am 26.08.2020 um 16:08 schrieb panagiotis merakos via use-livecode 
mailto:use-livecode@lists.runrev.com> >:

Hello all,

This is because MySQL 8 supports a stronger authentication method 
based on SHA256, and this method is used by default.

LiveCode (as well as some other MySQL connectors/clients) do not 
support this authentication method yet. In this case, you could 
configure your MySQL installation to use the legacy authentication 
(password encryption) method.

See the suggested answers in this link:
https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not
-support-authentication-protocol-requested-by-server/50961428

Hope this helps.

Kind regards,
Panos
--

On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode < 
use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> > wrote:




mySQL for which platform? Last I checked, the build for Windows did 
NOT support encryption. There is a special branch that does, but I 
could never get it to work.

What I came up with is an agent that resides on the SQL server, built 
in Livecode that listens for connections. It then handles the queries 
locally and returns the data.

The client and Server encrypt the data before sending it using a 
method only I know, so it’s very secure. The communications are done 
but I haven’t done the actual query side yet. That will be a half day’s work at 
most.

I think this client server approach is far better than native 
encryption, because I control the method and use a technique where 
even if someone tried brute force, or somehow discovered the key, 
they still could not decrypt the data, and wouldn’t know why.

Bob S


On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode < 
use-livecode@lists.runrev.com 
<mailto:use-livecode@lists.runrev.com%3cmailto:use-livecode@lists.runrev.com> 
<mailto:use-livecode@lists.runrev.com>>
wrote:

Dear livecode programmers,

For a few years we ran an internal app that accessed a MariaDB 
database (no PHP or LiveCode Server middleware, just a raw connection) using 
SSL.
The server running the database is old, so we moved to a new one.

The new one comes w

RE: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread Heriberto Torrado via use-livecode
Thanks Mattias,

Yes, it is an internal app, but I have a few users using Android.

Best,
Hery

-Original Message-
From: use-livecode  On Behalf Of
matthias rebbe via use-livecode
Sent: Thursday, August 27, 2020 11:55 AM
To: How to use LiveCode 
Cc: matthias_livecode_150...@m-r-d.de
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

You are correct.
But as Heriberto wort, it is an inhouse app, i thought using ODBC connector
from Oracle might be better than lowering the security level of the
database.



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.08.2020 um 17:40 schrieb Bob Sneidar via use-livecode
:
> 
> Just a heads up, ODBC is a local service, not a network protocol. You have
to create a DSN on the client OS which handles the network communications
for you. So every client that connects will need to have this DSN set up
first. For the experienced, this is no big deal, but for the first time
initiate it can be confusing.
> 
> Bob S
> 
> 
> On Aug 26, 2020, at 4:03 PM, Heriberto Torrado via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi Matthias,
> 
> Do you mean connecting to MySQL using ODBC instead of the built-in
LiveCode MySQL client?
> 
> Best,
> Hery
> 
> ___
> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread Heriberto Torrado via use-livecode
Got it, but it could be a problem for mobile users.

I know how to create a ODBC connection on Windows/Linux/Mac, but doing it on
Android it's out of my reach.

Best,
Hery

-Original Message-
From: use-livecode  On Behalf Of Bob
Sneidar via use-livecode
Sent: Thursday, August 27, 2020 11:41 AM
To: How to use LiveCode 
Cc: Bob Sneidar 
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

Just a heads up, ODBC is a local service, not a network protocol. You have
to create a DSN on the client OS which handles the network communications
for you. So every client that connects will need to have this DSN set up
first. For the experienced, this is no big deal, but for the first time
initiate it can be confusing.

Bob S


On Aug 26, 2020, at 4:03 PM, Heriberto Torrado via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Matthias,

Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode
MySQL client?

Best,
Hery

___
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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread matthias rebbe via use-livecode
Heriberto,

i just tried the ODBC drivers from Oracle here with MacOS X and MariaDB.

If you would like i can list the needed steps:

1. download and install the drivers for your operating system

2. Open ODBC Manager on Mac, i am not sure how this is called in English for 
the Windows app, but if you search for ODBC in the search field of Windows 
you'll get the configuration tool listed.

3. Add a new User or System DSN. You can select between Ansi and Unicode driver

4.1 In the following configuration dialog enter a name for the DNS, e.g. 
HeribertoDSN
4.2 Add the Keyword 'SERVER' and add the name or the ip address of the DB 
Server as value, e.g. HeribertoDB
If the DB is not using the standard port, then please add the port also. e.g. 
192.168.1.1:3308
4.3 Add the Keyword DATABASE and enter the name of the DB as value
There are several other keywords you can use. But the above are the basic ones 
you need.

now use 
revOpenDatabase("odbc", "HeribertoDSN","HeribertoDB",dbUsername,dbPassword,)

replace dbUsername and dbPassword with the user credentials for the DB.

You could also add the keywords USERNAME and PASSWORD in the DSN configuration 
from step 4, but i would do that only for testing.

Btw. the documentation for the ODBC driver can be found here.

Regards,

Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.08.2020 um 01:03 schrieb Heriberto Torrado :
> 
> Hi Matthias,
> 
> Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
> MySQL client?
> 
> Best,
> Hery
> 
> -Original Message-
> From: use-livecode  On Behalf Of 
> matthias rebbe via use-livecode
> Sent: Wednesday, August 26, 2020 10:42 AM
> To: How to use LiveCode 
> Cc: matthias_livecode_150...@m-r-d.de
> Subject: Re: Strange behavior between Mysql, MariaDB and SSL.
> 
> There are also free MySQL Connectors/ODBC available for different operating 
> systems. The current ones are for Server 8.0,5.7 and 5.6.
> 
> https://dev.mysql.com/downloads/connector/odbc/
> 
> They connectors can be downloaded without the need to be logged in. So no 
> need for an account registration at dev.mysql.com
> 
> Maybe this is an option instead of lowering the encryption level?
> 
> Matthias
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 26.08.2020 um 16:08 schrieb panagiotis merakos via use-livecode 
>> :
>> 
>> Hello all,
>> 
>> This is because MySQL 8 supports a stronger authentication method 
>> based on SHA256, and this method is used by default.
>> 
>> LiveCode (as well as some other MySQL connectors/clients) do not 
>> support this authentication method yet. In this case, you could 
>> configure your MySQL installation to use the legacy authentication 
>> (password encryption) method.
>> 
>> See the suggested answers in this link:
>> https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not
>> -support-authentication-protocol-requested-by-server/50961428
>> 
>> Hope this helps.
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode < 
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> mySQL for which platform? Last I checked, the build for Windows did 
>>> NOT support encryption. There is a special branch that does, but I 
>>> could never get it to work.
>>> 
>>> What I came up with is an agent that resides on the SQL server, built 
>>> in Livecode that listens for connections. It then handles the queries 
>>> locally and returns the data.
>>> 
>>> The client and Server encrypt the data before sending it using a 
>>> method only I know, so it’s very secure. The communications are done 
>>> but I haven’t done the actual query side yet. That will be a half day’s 
>>> work at most.
>>> 
>>> I think this client server approach is far better than native 
>>> encryption, because I control the method and use a technique where 
>>> even if someone tried brute force, or somehow discovered the key, 
>>> they still could not decrypt the data, and wouldn’t know why.
>>> 
>>> Bob S
>>> 
>>> 
>>> On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode < 
>>> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
>>> wrote:
>>> 
>>> Dear livecode programmers,
>>> 
>>> For a few years we ran an internal app that accessed a MariaDB 
>>> database (no PHP or LiveCode Server middleware, just a raw connection) 
>>> using SSL.
>>> The server running the dat

Re: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread matthias rebbe via use-livecode
Of course it was meant to be

"But as Heriberto wrote,.."

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.08.2020 um 17:55 schrieb matthias_livecode_150...@m-r-d.de:
> 
> You are correct.
> But as Heriberto wort, it is an inhouse app, i thought using ODBC connector 
> from Oracle might be better than lowering the security level of the database.
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 27.08.2020 um 17:40 schrieb Bob Sneidar via use-livecode 
>> :
>> 
>> Just a heads up, ODBC is a local service, not a network protocol. You have 
>> to create a DSN on the client OS which handles the network communications 
>> for you. So every client that connects will need to have this DSN set up 
>> first. For the experienced, this is no big deal, but for the first time 
>> initiate it can be confusing.
>> 
>> Bob S
>> 
>> 
>> On Aug 26, 2020, at 4:03 PM, Heriberto Torrado via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Hi Matthias,
>> 
>> Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
>> MySQL client?
>> 
>> Best,
>> Hery
>> 
>> ___
>> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread matthias rebbe via use-livecode
You are correct.
But as Heriberto wort, it is an inhouse app, i thought using ODBC connector 
from Oracle might be better than lowering the security level of the database.



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 27.08.2020 um 17:40 schrieb Bob Sneidar via use-livecode 
> :
> 
> Just a heads up, ODBC is a local service, not a network protocol. You have to 
> create a DSN on the client OS which handles the network communications for 
> you. So every client that connects will need to have this DSN set up first. 
> For the experienced, this is no big deal, but for the first time initiate it 
> can be confusing.
> 
> Bob S
> 
> 
> On Aug 26, 2020, at 4:03 PM, Heriberto Torrado via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi Matthias,
> 
> Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
> MySQL client?
> 
> Best,
> Hery
> 
> ___
> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-27 Thread Bob Sneidar via use-livecode
Just a heads up, ODBC is a local service, not a network protocol. You have to 
create a DSN on the client OS which handles the network communications for you. 
So every client that connects will need to have this DSN set up first. For the 
experienced, this is no big deal, but for the first time initiate it can be 
confusing.

Bob S


On Aug 26, 2020, at 4:03 PM, Heriberto Torrado via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Matthias,

Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
MySQL client?

Best,
Hery

___
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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-26 Thread Heriberto Torrado via use-livecode
Hi Matthias,

Do you mean connecting to MySQL using ODBC instead of the built-in LiveCode 
MySQL client?

Best,
Hery

-Original Message-
From: use-livecode  On Behalf Of 
matthias rebbe via use-livecode
Sent: Wednesday, August 26, 2020 10:42 AM
To: How to use LiveCode 
Cc: matthias_livecode_150...@m-r-d.de
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

There are also free MySQL Connectors/ODBC available for different operating 
systems. The current ones are for Server 8.0,5.7 and 5.6.

https://dev.mysql.com/downloads/connector/odbc/

They connectors can be downloaded without the need to be logged in. So no need 
for an account registration at dev.mysql.com

Maybe this is an option instead of lowering the encryption level?

Matthias
-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 26.08.2020 um 16:08 schrieb panagiotis merakos via use-livecode 
> :
> 
> Hello all,
> 
> This is because MySQL 8 supports a stronger authentication method 
> based on SHA256, and this method is used by default.
> 
> LiveCode (as well as some other MySQL connectors/clients) do not 
> support this authentication method yet. In this case, you could 
> configure your MySQL installation to use the legacy authentication 
> (password encryption) method.
> 
> See the suggested answers in this link:
> https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not
> -support-authentication-protocol-requested-by-server/50961428
> 
> Hope this helps.
> 
> Kind regards,
> Panos
> --
> 
> On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode < 
> use-livecode@lists.runrev.com> wrote:
> 
>> mySQL for which platform? Last I checked, the build for Windows did 
>> NOT support encryption. There is a special branch that does, but I 
>> could never get it to work.
>> 
>> What I came up with is an agent that resides on the SQL server, built 
>> in Livecode that listens for connections. It then handles the queries 
>> locally and returns the data.
>> 
>> The client and Server encrypt the data before sending it using a 
>> method only I know, so it’s very secure. The communications are done 
>> but I haven’t done the actual query side yet. That will be a half day’s work 
>> at most.
>> 
>> I think this client server approach is far better than native 
>> encryption, because I control the method and use a technique where 
>> even if someone tried brute force, or somehow discovered the key, 
>> they still could not decrypt the data, and wouldn’t know why.
>> 
>> Bob S
>> 
>> 
>> On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode < 
>> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
>> wrote:
>> 
>> Dear livecode programmers,
>> 
>> For a few years we ran an internal app that accessed a MariaDB 
>> database (no PHP or LiveCode Server middleware, just a raw connection) using 
>> SSL.
>> The server running the database is old, so we moved to a new one.
>> 
>> The new one comes with a Mysql 8 Database instead of MariaDB and the 
>> SSL encryption suddenly stopped working.
>> 
>> The new MYSQL database has a working SSL encryption cert (Let's encrypt).
>> 
>> There are the tests:
>> 
>> *From the server:*
>> 
>> ___
>> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-26 Thread Heriberto Torrado via use-livecode
Hi Panagiotis,

It makes sense, I'm going to try it.

Thank you very much for your recommendations.
I would like to say that this list is great.

Best,
Hery


-Original Message-
From: use-livecode  On Behalf Of 
panagiotis merakos via use-livecode
Sent: Wednesday, August 26, 2020 10:09 AM
To: How to use LiveCode 
Cc: panagiotis merakos 
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

Hello all,

This is because MySQL 8 supports a stronger authentication method based on 
SHA256, and this method is used by default.

LiveCode (as well as some other MySQL connectors/clients) do not support this 
authentication method yet. In this case, you could configure your MySQL 
installation to use the legacy authentication (password encryption) method.

See the suggested answers in this link:
https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server/50961428

Hope this helps.

Kind regards,
Panos
--

On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode < 
use-livecode@lists.runrev.com> wrote:

> mySQL for which platform? Last I checked, the build for Windows did 
> NOT support encryption. There is a special branch that does, but I 
> could never get it to work.
>
> What I came up with is an agent that resides on the SQL server, built 
> in Livecode that listens for connections. It then handles the queries 
> locally and returns the data.
>
> The client and Server encrypt the data before sending it using a 
> method only I know, so it’s very secure. The communications are done 
> but I haven’t done the actual query side yet. That will be a half day’s work 
> at most.
>
> I think this client server approach is far better than native 
> encryption, because I control the method and use a technique where 
> even if someone tried brute force, or somehow discovered the key, they 
> still could not decrypt the data, and wouldn’t know why.
>
> Bob S
>
>
> On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode < 
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>>
> wrote:
>
> Dear livecode programmers,
>
> For a few years we ran an internal app that accessed a MariaDB 
> database (no PHP or LiveCode Server middleware, just a raw connection) using 
> SSL.
> The server running the database is old, so we moved to a new one.
>
> The new one comes with a Mysql 8 Database instead of MariaDB and the 
> SSL encryption suddenly stopped working.
>
> The new MYSQL database has a working SSL encryption cert (Let's encrypt).
>
> There are the tests:
>
> *From the server:*
>
> ___
> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-26 Thread Heriberto Torrado via use-livecode
Hi Bob,

It worked from Linux, Mac, and Windows.

Your idea sounds really good, but to be honest, I'm pretty busy these days and 
I wouldn't like  to deal with making middleware.
I just looking for a quick fix.

Maybe in the future, I’ll have to do it.


Best,
Hery

-Original Message-
From: use-livecode  On Behalf Of Bob 
Sneidar via use-livecode
Sent: Tuesday, August 25, 2020 11:40 AM
To: How to use LiveCode 
Cc: Bob Sneidar 
Subject: Re: Strange behavior between Mysql, MariaDB and SSL.

mySQL for which platform? Last I checked, the build for Windows did NOT support 
encryption. There is a special branch that does, but I could never get it to 
work.

What I came up with is an agent that resides on the SQL server, built in 
Livecode that listens for connections. It then handles the queries locally and 
returns the data.

The client and Server encrypt the data before sending it using a method only I 
know, so it’s very secure. The communications are done but I haven’t done the 
actual query side yet. That will be a half day’s work at most.

I think this client server approach is far better than native encryption, 
because I control the method and use a technique where even if someone tried 
brute force, or somehow discovered the key, they still could not decrypt the 
data, and wouldn’t know why.

Bob S


On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Dear livecode programmers,

For a few years we ran an internal app that accessed a MariaDB database (no PHP 
or LiveCode Server middleware, just a raw connection) using SSL.
The server running the database is old, so we moved to a new one.

The new one comes with a Mysql 8 Database instead of MariaDB and the SSL 
encryption suddenly stopped working.

The new MYSQL database has a working SSL encryption cert (Let's encrypt).

There are the tests:

*From the server:*

___
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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-26 Thread matthias rebbe via use-livecode
There are also free MySQL Connectors/ODBC available for different operating 
systems. The current ones are for Server 8.0,5.7 and 5.6.

https://dev.mysql.com/downloads/connector/odbc/

They connectors can be downloaded without the need to be logged in. So no need 
for an account registration at dev.mysql.com

Maybe this is an option instead of lowering the encryption level?

Matthias
-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 26.08.2020 um 16:08 schrieb panagiotis merakos via use-livecode 
> :
> 
> Hello all,
> 
> This is because MySQL 8 supports a stronger authentication method based on
> SHA256, and this method is used by default.
> 
> LiveCode (as well as some other MySQL connectors/clients) do not support
> this authentication method yet. In this case, you could configure your
> MySQL installation to use the legacy authentication (password encryption)
> method.
> 
> See the suggested answers in this link:
> https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server/50961428
> 
> Hope this helps.
> 
> Kind regards,
> Panos
> --
> 
> On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> mySQL for which platform? Last I checked, the build for Windows did NOT
>> support encryption. There is a special branch that does, but I could never
>> get it to work.
>> 
>> What I came up with is an agent that resides on the SQL server, built in
>> Livecode that listens for connections. It then handles the queries locally
>> and returns the data.
>> 
>> The client and Server encrypt the data before sending it using a method
>> only I know, so it’s very secure. The communications are done but I haven’t
>> done the actual query side yet. That will be a half day’s work at most.
>> 
>> I think this client server approach is far better than native encryption,
>> because I control the method and use a technique where even if someone
>> tried brute force, or somehow discovered the key, they still could not
>> decrypt the data, and wouldn’t know why.
>> 
>> Bob S
>> 
>> 
>> On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode <
>> use-livecode@lists.runrev.com>
>> wrote:
>> 
>> Dear livecode programmers,
>> 
>> For a few years we ran an internal app that accessed a MariaDB database
>> (no PHP or LiveCode Server middleware, just a raw connection) using SSL.
>> The server running the database is old, so we moved to a new one.
>> 
>> The new one comes with a Mysql 8 Database instead of MariaDB and the SSL
>> encryption suddenly stopped working.
>> 
>> The new MYSQL database has a working SSL encryption cert (Let's encrypt).
>> 
>> There are the tests:
>> 
>> *From the server:*
>> 
>> ___
>> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-26 Thread panagiotis merakos via use-livecode
Hello all,

This is because MySQL 8 supports a stronger authentication method based on
SHA256, and this method is used by default.

LiveCode (as well as some other MySQL connectors/clients) do not support
this authentication method yet. In this case, you could configure your
MySQL installation to use the legacy authentication (password encryption)
method.

See the suggested answers in this link:
https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server/50961428

Hope this helps.

Kind regards,
Panos
--

On Tue, 25 Aug 2020 at 18:41, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> mySQL for which platform? Last I checked, the build for Windows did NOT
> support encryption. There is a special branch that does, but I could never
> get it to work.
>
> What I came up with is an agent that resides on the SQL server, built in
> Livecode that listens for connections. It then handles the queries locally
> and returns the data.
>
> The client and Server encrypt the data before sending it using a method
> only I know, so it’s very secure. The communications are done but I haven’t
> done the actual query side yet. That will be a half day’s work at most.
>
> I think this client server approach is far better than native encryption,
> because I control the method and use a technique where even if someone
> tried brute force, or somehow discovered the key, they still could not
> decrypt the data, and wouldn’t know why.
>
> Bob S
>
>
> On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode <
> use-livecode@lists.runrev.com>
> wrote:
>
> Dear livecode programmers,
>
> For a few years we ran an internal app that accessed a MariaDB database
> (no PHP or LiveCode Server middleware, just a raw connection) using SSL.
> The server running the database is old, so we moved to a new one.
>
> The new one comes with a Mysql 8 Database instead of MariaDB and the SSL
> encryption suddenly stopped working.
>
> The new MYSQL database has a working SSL encryption cert (Let's encrypt).
>
> There are the tests:
>
> *From the server:*
>
> ___
> 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: Strange behavior between Mysql, MariaDB and SSL.

2020-08-25 Thread Bob Sneidar via use-livecode
mySQL for which platform? Last I checked, the build for Windows did NOT support 
encryption. There is a special branch that does, but I could never get it to 
work.

What I came up with is an agent that resides on the SQL server, built in 
Livecode that listens for connections. It then handles the queries locally and 
returns the data.

The client and Server encrypt the data before sending it using a method only I 
know, so it’s very secure. The communications are done but I haven’t done the 
actual query side yet. That will be a half day’s work at most.

I think this client server approach is far better than native encryption, 
because I control the method and use a technique where even if someone tried 
brute force, or somehow discovered the key, they still could not decrypt the 
data, and wouldn’t know why.

Bob S


On Aug 24, 2020, at 3:25 PM, Heriberto Torrado via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Dear livecode programmers,

For a few years we ran an internal app that accessed a MariaDB database (no PHP 
or LiveCode Server middleware, just a raw connection) using SSL.
The server running the database is old, so we moved to a new one.

The new one comes with a Mysql 8 Database instead of MariaDB and the SSL 
encryption suddenly stopped working.

The new MYSQL database has a working SSL encryption cert (Let's encrypt).

There are the tests:

*From the server:*

___
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


Strange behavior between Mysql, MariaDB and SSL.

2020-08-24 Thread Heriberto Torrado via use-livecode

Dear livecode programmers,

For a few years we ran an internal app that accessed a MariaDB database 
(no PHP or LiveCode Server middleware, just a raw connection) using SSL.

The server running the database is old, so we moved to a new one.

The new one comes with a Mysql 8 Database instead of MariaDB and the SSL 
encryption suddenly stopped working.


The new MYSQL database has a working SSL encryption cert (Let's encrypt).

There are the tests:

*From the server:*

mysql> show variables like '%ssl%';
+++
| Variable_name      | Value                          |
+++
| have_openssl       | YES                            |
| have_ssl           | YES                            |
| mysqlx_ssl_ca      |                                |
| mysqlx_ssl_capath  |                                |
| mysqlx_ssl_cert    |                                |
| mysqlx_ssl_cipher  |                                |
| mysqlx_ssl_crl     |                                |
| mysqlx_ssl_crlpath |                                |
| mysqlx_ssl_key     |                                |
| ssl_ca             | /var/lib/mysql/pki/chain.pem   |
| ssl_capath         |                                |
| ssl_cert           | /var/lib/mysql/pki/cert.pem    |
| ssl_cipher         |                                |
| ssl_crl            |                                |
| ssl_crlpath        |                                |
| ssl_fips_mode      | OFF                            |
| ssl_key            | /var/lib/mysql/pki/privkey.pem |
+++
17 rows in set (0.00 sec)

*From a client forcing using SSL (from remote machine):*

MySQL [(none)]> show status like 'ssl_cipher';
+---++
| Variable_name | Value                  |
+---++
| Ssl_cipher    | TLS_AES_256_GCM_SHA384 |
+---++

Server: Centos 8.0


This is the error I get: SSL connection error.


This is my livecode DB sequence connection (From a Livecode 9.5 Indy 
version).



   put revOpenDatabase("mysql", tserver, tDatabaseName, tuser, 
tpass,true,,,true) into tResult


   if tResult is a number then
  put tResult into gConnectionID

   else
  put empty into gConnectionID
  answer error "Upps, Cannot connect to the data base!, ¡Hay 
problemas!, Try it again: "& cr  & tResult

  exit to top
   end if

Do you know what can be the problem?


--

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net

 Address / Dirección / Adresse:​

*USA: *538 East 85th Street, #1C Manhattan NY, NY 10028 USA
*Europe / Europa: *Paseo de la Castellana 135 10ª Planta Madrid 28024 
Spain / España


*Tel - Phone - Fax:*

Phone / Tel USA : +1 917 287 5644 / +1 646 596 8787
Phone / Tel Spain :+34 627 556 500 / + 34 91 063 74 48

   Please consider the environment before printing this email / Por 
favor considera tu responsabilidad medioambiental antes de imprimir esta 
página.


Confidentiality: The information contained in this message as well as 
the attached file(s) is confidential/privileged and is only intended for 
the person(s) to whom it is addressed. If the reader of this message is 
not the intended recipient or the employee or agent responsible for 
delivering the message to the intended recipient, or you have received 
this comunication in error, please be aware that any dissemination, 
distribution or duplication is strictly prohibited, and can be illegal, 
and please notify us immediately and return the original message to us 
at the address above. Thank you.


Confidencialidad: La información contenida en este mensaje y/o 
archivo(s) adjunto(s) es confidencial/privilegiada y está destinada a 
ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted 
lee este mensaje y no es el destinatario señalado, el empleado o el 
agente responsable de entregar el mensaje al destinatario, o ha recibido 
esta comunicación por error, le informamos que está totalmente 
prohibida, y puede ser ilegal, cualquier divulgación, distribución o 
reproducción de esta comunicación, y le rogamos que nos lo notifique 
inmediatamente y nos devuelva el mensaje original a la dirección arriba 
mencionada. Gracias.


Viruses: Although we have taken steps to insure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice, the recipient should ensure they are actually virus 
free.


Virus: Aunque hemos tomado las medidas para asegurarnos que este correo 
electrónico y sus ficheros adjuntos están libres de virus, le 
recomendamos que a efectos de mantener buenas prácticas de seguridad, el 
receptor debe asegurarse que este correo y sus ficheros adjuntos están 

Re: Small and strange problem

2020-05-14 Thread Paul Hibbert via use-livecode
Hi Graham,

Thank you for the update. Sorry to hear about the flood, I know from personal 
experience what that’s like so I really wish you and your family well, and that 
you can get your home and life back in to normal very soon..

Paul

> On May 14, 2020, at 03:17, Graham Samuel via use-livecode 
>  wrote:
> 
> Hi Paul
> 
> Sorry for the delay in replying but my house has just been inundated (it 
> happened on Monday and we are still clearing up! Worst flood in more than 40 
> years in my French village). Anyway, the bug is registered as 22730. The 
> problem is acknowledged - as I said in my submission, I’m not claiming my 
> coding is correct, I’m just trying to show that the IDE doesn’t behave 
> consistently in this instance.
> 
> Graham
> 
>> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Good point Ben, looks like that was my mistake. I don’t remember where I 
>> learned to use "if tError then”, but what I forgot was that it should have 
>> been testing for a false condition, so “if not tError then” does show the 
>> error when one occurs and skips when no error occurs.
>> 
>> Fixing this returns the following error when tMins contains a non numeric 
>> character;
>> An Error Occurred; 375,5,1
>> 239,5,1
>> 465,5,1
>> tMins = 31′
>> 
>> These are the corresponding LC Error Codes;
>> 375  Operators /: error in left operand
>> 239  Operators (): error in right operand
>> 465  put: error in expression
>> 
>> So it seems the value passed to tMins may contain invalid character(s) as 
>> Graham suspects. However, this doesn’t explain why the original script 
>> should behave differently using the debugger and not.
>> 
>> @Graham, can you post the Bug Report Number please?
>> 
>> Paul
>> 
>> 
>>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>>  wrote:
>>> 
>>> And re this part:
>>> 
> Interestingly this
> 
> on mouseUp pMouseButton
> try
>   put (tMins/60) into tMins
> catch tError
>   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
> =" && tMins
> end try
> end mouseUp
> 
> does NOT through an error or a catch error message
>>> 
>>> You're not seeing that there was an error thrown because 'tError' would be 
>>> set to the error message; the code above is testing for it being true, 
>>> before deciding to display the message. But it won't be true it, it will be 
>>> an expression of the error. If you removed "if tError then", so always 
>>> execute the answer statement in the catch section, you should see the error 
>>> message.
>>> 
>>> HTH,
>>> 
>>> Ben
>>> 
>>> 
>>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
 Hi Andy,
 Yes, tMins has to have a value or the statement makes no sense because LC 
 has no
 context for what you are trying to do.  LC doesn’t know if tMins is a 
 string or something else.
 Rick
> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>  wrote:
> 
> I seem to have my posts dropped at the moment hence this,
> 
> I'm seeing the same error
> 
> with
> 
> on mouseUp pMouseButton
> put (tMins/60) into tMins
> answer tMins
> end mouseUp
> 
> button "Button": execution error at line 2 (Operators /: error in left 
> operand), char 1
> 
> Interestingly this
> 
> on mouseUp pMouseButton
> try
>  put (tMins/60) into tMins
> catch tError
>  if tError then answer "An Error Occurred;"  && tError & return & "tMins 
> =" && tMins
> end try
> end mouseUp
> 
> does NOT through an error or a catch error message
> 
> 
> If however tMins is initialized then all works as expected
> 
> on mouseUp pMouseButton
> put 20 into tMins
> put (tMins/60) into tMins
> answer tMins
> end mouseUp
> 
> ???
>>> 
>>> ___
>>> 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: Small and strange problem

2020-05-14 Thread Graham Samuel via use-livecode
Hi Paul

Sorry for the delay in replying but my house has just been inundated (it 
happened on Monday and we are still clearing up! Worst flood in more than 40 
years in my French village). Anyway, the bug is registered as 22730. The 
problem is acknowledged - as I said in my submission, I’m not claiming my 
coding is correct, I’m just trying to show that the IDE doesn’t behave 
consistently in this instance.

Graham

> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>  wrote:
> 
> Good point Ben, looks like that was my mistake. I don’t remember where I 
> learned to use "if tError then”, but what I forgot was that it should have 
> been testing for a false condition, so “if not tError then” does show the 
> error when one occurs and skips when no error occurs.
> 
> Fixing this returns the following error when tMins contains a non numeric 
> character;
> An Error Occurred; 375,5,1
> 239,5,1
> 465,5,1
> tMins = 31′
> 
> These are the corresponding LC Error Codes;
> 375   Operators /: error in left operand
> 239   Operators (): error in right operand
> 465   put: error in expression
> 
> So it seems the value passed to tMins may contain invalid character(s) as 
> Graham suspects. However, this doesn’t explain why the original script should 
> behave differently using the debugger and not.
> 
> @Graham, can you post the Bug Report Number please?
> 
> Paul
> 
> 
>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>  wrote:
>> 
>> And re this part:
>> 
 Interestingly this
 
 on mouseUp pMouseButton
  try
put (tMins/60) into tMins
  catch tError
if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
  end try
 end mouseUp
 
 does NOT through an error or a catch error message
>> 
>> You're not seeing that there was an error thrown because 'tError' would be 
>> set to the error message; the code above is testing for it being true, 
>> before deciding to display the message. But it won't be true it, it will be 
>> an expression of the error. If you removed "if tError then", so always 
>> execute the answer statement in the catch section, you should see the error 
>> message.
>> 
>> HTH,
>> 
>> Ben
>> 
>> 
>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>>> Hi Andy,
>>> Yes, tMins has to have a value or the statement makes no sense because LC 
>>> has no
>>> context for what you are trying to do.  LC doesn’t know if tMins is a 
>>> string or something else.
>>> Rick
 On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
  wrote:
 
 I seem to have my posts dropped at the moment hence this,
 
 I'm seeing the same error
 
 with
 
 on mouseUp pMouseButton
 put (tMins/60) into tMins
 answer tMins
 end mouseUp
 
 button "Button": execution error at line 2 (Operators /: error in left 
 operand), char 1
 
 Interestingly this
 
 on mouseUp pMouseButton
 try
   put (tMins/60) into tMins
 catch tError
   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
 end try
 end mouseUp
 
 does NOT through an error or a catch error message
 
 
 If however tMins is initialized then all works as expected
 
 on mouseUp pMouseButton
 put 20 into tMins
 put (tMins/60) into tMins
 answer tMins
 end mouseUp
 
 ???
>> 
>> ___
>> 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: Small and strange problem

2020-05-11 Thread Paul Hibbert via use-livecode
Good point Ben, looks like that was my mistake. I don’t remember where I 
learned to use "if tError then”, but what I forgot was that it should have been 
testing for a false condition, so “if not tError then” does show the error when 
one occurs and skips when no error occurs.

Fixing this returns the following error when tMins contains a non numeric 
character;
An Error Occurred; 375,5,1
239,5,1
465,5,1
tMins = 31′

These are the corresponding LC Error Codes;
375 Operators /: error in left operand
239 Operators (): error in right operand
465 put: error in expression

So it seems the value passed to tMins may contain invalid character(s) as 
Graham suspects. However, this doesn’t explain why the original script should 
behave differently using the debugger and not.

@Graham, can you post the Bug Report Number please?

Paul


> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>  wrote:
> 
> And re this part:
> 
> >> Interestingly this
> >>
> >> on mouseUp pMouseButton
> >>   try
> >> put (tMins/60) into tMins
> >>   catch tError
> >> if tError then answer "An Error Occurred;"  && tError & return & 
> >> "tMins =" && tMins
> >>   end try
> >> end mouseUp
> >>
> >> does NOT through an error or a catch error message
> 
> You're not seeing that there was an error thrown because 'tError' would be 
> set to the error message; the code above is testing for it being true, before 
> deciding to display the message. But it won't be true it, it will be an 
> expression of the error. If you removed "if tError then", so always execute 
> the answer statement in the catch section, you should see the error message.
> 
> HTH,
> 
> Ben
> 
> 
> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>> Hi Andy,
>> Yes, tMins has to have a value or the statement makes no sense because LC 
>> has no
>> context for what you are trying to do.  LC doesn’t know if tMins is a string 
>> or something else.
>> Rick
>>> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>>>  wrote:
>>> 
>>> I seem to have my posts dropped at the moment hence this,
>>> 
>>> I'm seeing the same error
>>> 
>>> with
>>> 
>>> on mouseUp pMouseButton
>>>  put (tMins/60) into tMins
>>>  answer tMins
>>> end mouseUp
>>> 
>>> button "Button": execution error at line 2 (Operators /: error in left 
>>> operand), char 1
>>> 
>>> Interestingly this
>>> 
>>> on mouseUp pMouseButton
>>>  try
>>>put (tMins/60) into tMins
>>>  catch tError
>>>if tError then answer "An Error Occurred;"  && tError & return & "tMins 
>>> =" && tMins
>>>  end try
>>> end mouseUp
>>> 
>>> does NOT through an error or a catch error message
>>> 
>>> 
>>> If however tMins is initialized then all works as expected
>>> 
>>> on mouseUp pMouseButton
>>>  put 20 into tMins
>>>  put (tMins/60) into tMins
>>>  answer tMins
>>> end mouseUp
>>> 
>>> ???
> 
> ___
> 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: Small and strange problem

2020-05-11 Thread Mark Waddingham via use-livecode

On 2020-05-11 18:18, Graham Samuel via use-livecode wrote:

As I tiny bit of background, the script tries to parse a string that
represents a longitude, copied from a web site. It certainly has some
weird characters in it, but I thought I’d got round then. FWIW, the
string is

004° 31′ 50″ W

I am going to report it to the mother ship


I agree there is something odd going on if in the debugger tMins has 31 
as the value but when run the script outside of the debugger you get an 
error.


What is the code before it in the handler? (Indeed what is the code for 
the whole handler!)


The tMins var is presumably local, and so must be being initialized with 
a value somewhere when running in the debugger; outside of the debugger 
the error you are getting is because tMins has value "tMins" which is 
not a number until it is initialized (as its an unquoted literal at that 
point - as I'm guessing you have explicitVariables/VariableChecking 
turned off).


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Small and strange problem

2020-05-11 Thread Graham Samuel via use-livecode
I set this hare running initially. I really do think there is a bug, because 
the thing works when stepped through but not if it’s allowed to run without 
interruption. In the stepped-through activity it’s easy to see that tMins does 
have a value. In my example it’s 31, or maybe it’s a string of which the 
visible part is “31”. But the fact remains the script behaves in two different 
ways, at least on my computer.

As I tiny bit of background, the script tries to parse a string that represents 
a longitude, copied from a web site. It certainly has some weird characters in 
it, but I thought I’d got round then. FWIW, the string is 

004° 31′ 50″ W

I am going to report it to the mother ship

Graham

> On 11 May 2020, at 16:31, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Andy,
> 
> Yes, tMins has to have a value or the statement makes no sense because LC has 
> no
> context for what you are trying to do.  LC doesn’t know if tMins is a string 
> or something else.
> 
> Rick
> 
> 
>> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>>  wrote:
>> 
>> I seem to have my posts dropped at the moment hence this,
>> 
>> I'm seeing the same error
>> 
>> with 
>> 
>> on mouseUp pMouseButton
>> put (tMins/60) into tMins
>> answer tMins
>> end mouseUp
>> 
>> button "Button": execution error at line 2 (Operators /: error in left 
>> operand), char 1
>> 
>> Interestingly this
>> 
>> on mouseUp pMouseButton
>> try
>>   put (tMins/60) into tMins
>> catch tError
>>   if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
>> && tMins
>> end try
>> end mouseUp
>> 
>> does NOT through an error or a catch error message
>> 
>> 
>> If however tMins is initialized then all works as expected
>> 
>> on mouseUp pMouseButton
>> put 20 into tMins
>> put (tMins/60) into tMins
>> answer tMins
>> end mouseUp
>> 
>> ???
>> 
>> 
>> _
>> Sent from http://runtime-revolution.278305.n4.nabble.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
> 
> 
> ___
> 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: Small and strange problem

2020-05-11 Thread Ben Rubinstein via use-livecode

And re this part:

>> Interestingly this
>>
>> on mouseUp pMouseButton
>>   try
>> put (tMins/60) into tMins
>>   catch tError
>> if tError then answer "An Error Occurred;"  && tError & return & 
"tMins =" && tMins

>>   end try
>> end mouseUp
>>
>> does NOT through an error or a catch error message

You're not seeing that there was an error thrown because 'tError' would be set 
to the error message; the code above is testing for it being true, before 
deciding to display the message. But it won't be true it, it will be an 
expression of the error. If you removed "if tError then", so always execute 
the answer statement in the catch section, you should see the error message.


HTH,

Ben


On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:

Hi Andy,

Yes, tMins has to have a value or the statement makes no sense because LC has no
context for what you are trying to do.  LC doesn’t know if tMins is a string or 
something else.

Rick



On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
 wrote:

I seem to have my posts dropped at the moment hence this,

I'm seeing the same error

with

on mouseUp pMouseButton
  put (tMins/60) into tMins
  answer tMins
end mouseUp

button "Button": execution error at line 2 (Operators /: error in left 
operand), char 1

Interestingly this

on mouseUp pMouseButton
  try
put (tMins/60) into tMins
  catch tError
if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
&& tMins
  end try
end mouseUp

does NOT through an error or a catch error message


If however tMins is initialized then all works as expected

on mouseUp pMouseButton
  put 20 into tMins
  put (tMins/60) into tMins
  answer tMins
end mouseUp

???


___
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: Small and strange problem

2020-05-11 Thread Rick Harrison via use-livecode
Hi Andy,

Yes, tMins has to have a value or the statement makes no sense because LC has no
context for what you are trying to do.  LC doesn’t know if tMins is a string or 
something else.

Rick


> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>  wrote:
> 
> I seem to have my posts dropped at the moment hence this,
> 
> I'm seeing the same error
> 
> with 
> 
> on mouseUp pMouseButton
>  put (tMins/60) into tMins
>  answer tMins
> end mouseUp
> 
> button "Button": execution error at line 2 (Operators /: error in left 
> operand), char 1
> 
> Interestingly this
> 
> on mouseUp pMouseButton
>  try
>put (tMins/60) into tMins
>  catch tError
>if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
> && tMins
>  end try
> end mouseUp
> 
> does NOT through an error or a catch error message
> 
> 
> If however tMins is initialized then all works as expected
> 
> on mouseUp pMouseButton
>  put 20 into tMins
>  put (tMins/60) into tMins
>  answer tMins
> end mouseUp
> 
> ???
> 
> 
> _
> Sent from http://runtime-revolution.278305.n4.nabble.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


___
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: Small and strange problem

2020-05-11 Thread Colin Holgate via use-livecode
Do you have an earlier line where you have set tMins? If it has never been set, 
would you export tMins/60 to work?

Aside from that, there was a change in LiveCode 7 or 8, where you could no 
longer create a variable on the first line that it is used. You need to have 
declared it earlier on.


> On May 11, 2020, at 2:24 AM, AndyP via use-livecode 
>  wrote:
> 
> I seem to have my posts dropped at the moment hence this,
> 
> I'm seeing the same error
> 
> with 
> 
> on mouseUp pMouseButton
>  put (tMins/60) into tMins
>  answer tMins
> end mouseUp
> 
> button "Button": execution error at line 2 (Operators /: error in left 
> operand), char 1
> 
> Interestingly this
> 
> on mouseUp pMouseButton
>  try
>put (tMins/60) into tMins
>  catch tError
>if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
> && tMins
>  end try
> end mouseUp
> 
> does NOT through an error or a catch error message
> 
> 
> If however tMins is initialized then all works as expected
> 
> on mouseUp pMouseButton
>  put 20 into tMins
>  put (tMins/60) into tMins
>  answer tMins
> end mouseUp
> 
> ???
> 
> 
> _
> Sent from http://runtime-revolution.278305.n4.nabble.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


___
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


Small and strange problem

2020-05-11 Thread AndyP via use-livecode
I seem to have my posts dropped at the moment hence this,

I'm seeing the same error

with 

on mouseUp pMouseButton
  put (tMins/60) into tMins
  answer tMins
end mouseUp

button "Button": execution error at line 2 (Operators /: error in left 
operand), char 1

Interestingly this

on mouseUp pMouseButton
  try
put (tMins/60) into tMins
  catch tError
if tError then answer "An Error Occurred;"  && tError & return & "tMins =" 
&& tMins
  end try
end mouseUp

does NOT through an error or a catch error message


If however tMins is initialized then all works as expected

on mouseUp pMouseButton
  put 20 into tMins
  put (tMins/60) into tMins
  answer tMins
end mouseUp

???


_
Sent from http://runtime-revolution.278305.n4.nabble.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: Small and strange problem

2020-05-10 Thread scott--- via use-livecode
How does tMins acquire the data? Are you certain it contains what you expect 
when you aren’t stepping through the code (and slowing things down)? perhaps a 
“put tMins" or “answer tMins” would expose something. (Probably not, but we are 
curious!)
—
Scott

> On May 10, 2020, at 12:52 PM, Tom Glod via use-livecode 
>  wrote:
> 
> try putting a space between the left and right of the / and see if you
> still get it.
> 
> On Sun, May 10, 2020 at 1:10 PM Paul Hibbert via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> No replies so far, so I had a few minutes spare and tried to recreate this
>> problem, but couldn’t. No matter what I put into tMins first, even an empty
>> variable still returned 0, so my suggestion would be to wrap the script in
>> a try - catch to see what’s going on with the left operand (tMins) during
>> the equation, something like:
>> 
>>   try
>>  put (tMins/60) into tMins
>>   catch tError
>>  if tError then answer "An Error Occurred;"  && tError & return &
>> "tMins =" && tMins
>>   end try
>> 
>> I tried in both versions of LC that you mentioned and saw no problem.
>> 
>> Maybe somebody else will have a better idea.
>> 
>> Paul
>> 
>>> On May 9, 2020, at 07:05, Graham Samuel via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.
>>> 
>>> I have a script with a very simple statement:
>>> put (tMins/60) into tMins
>>> 
>>> tMins contains a number, and as expected I get a numeric result, for
>> example if tMins is 31, I get 0.516667
>>> 
>>> but ONLY when I step through the script in the IDE. If I let the script
>> run, the IDE reports an error:
>>> 
 Execution error (operators /: error in left operand, char 1
>>> 
>>> 
>>> Either there’s an error or there isn’t. What can be wrong? I suppose as
>> usual it’s me, but I am foxed.
>>> 
>>> Graham
>>> ___
>>> 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
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> 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: Small and strange problem

2020-05-10 Thread Tom Glod via use-livecode
try putting a space between the left and right of the / and see if you
still get it.

On Sun, May 10, 2020 at 1:10 PM Paul Hibbert via use-livecode <
use-livecode@lists.runrev.com> wrote:

> No replies so far, so I had a few minutes spare and tried to recreate this
> problem, but couldn’t. No matter what I put into tMins first, even an empty
> variable still returned 0, so my suggestion would be to wrap the script in
> a try - catch to see what’s going on with the left operand (tMins) during
> the equation, something like:
>
>try
>   put (tMins/60) into tMins
>catch tError
>   if tError then answer "An Error Occurred;"  && tError & return &
> "tMins =" && tMins
>end try
>
> I tried in both versions of LC that you mentioned and saw no problem.
>
> Maybe somebody else will have a better idea.
>
> Paul
>
> > On May 9, 2020, at 07:05, Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.
> >
> > I have a script with a very simple statement:
> >  put (tMins/60) into tMins
> >
> > tMins contains a number, and as expected I get a numeric result, for
> example if tMins is 31, I get 0.516667
> >
> > but ONLY when I step through the script in the IDE. If I let the script
> run, the IDE reports an error:
> >
> >> Execution error (operators /: error in left operand, char 1
> >
> >
> > Either there’s an error or there isn’t. What can be wrong? I suppose as
> usual it’s me, but I am foxed.
> >
> > Graham
> > ___
> > 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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: Small and strange problem

2020-05-10 Thread Paul Hibbert via use-livecode
No replies so far, so I had a few minutes spare and tried to recreate this 
problem, but couldn’t. No matter what I put into tMins first, even an empty 
variable still returned 0, so my suggestion would be to wrap the script in a 
try - catch to see what’s going on with the left operand (tMins) during the 
equation, something like:

   try
  put (tMins/60) into tMins
   catch tError
  if tError then answer "An Error Occurred;"  && tError & return & "tMins 
=" && tMins
   end try

I tried in both versions of LC that you mentioned and saw no problem. 

Maybe somebody else will have a better idea.

Paul

> On May 9, 2020, at 07:05, Graham Samuel via use-livecode 
>  wrote:
> 
> I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.
> 
> I have a script with a very simple statement:
>  put (tMins/60) into tMins
> 
> tMins contains a number, and as expected I get a numeric result, for example 
> if tMins is 31, I get 0.516667
> 
> but ONLY when I step through the script in the IDE. If I let the script run, 
> the IDE reports an error:
> 
>> Execution error (operators /: error in left operand, char 1
> 
> 
> Either there’s an error or there isn’t. What can be wrong? I suppose as usual 
> it’s me, but I am foxed.
> 
> Graham
> ___
> 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


Small and strange problem

2020-05-09 Thread Graham Samuel via use-livecode
I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.

I have a script with a very simple statement:
  put (tMins/60) into tMins

tMins contains a number, and as expected I get a numeric result, for example if 
tMins is 31, I get 0.516667

but ONLY when I step through the script in the IDE. If I let the script run, 
the IDE reports an error:

> Execution error (operators /: error in left operand, char 1


Either there’s an error or there isn’t. What can be wrong? I suppose as usual 
it’s me, but I am foxed.

Graham
___
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: Strange times, amazing projects

2020-04-03 Thread Devin Asay via use-livecode
Skip, have you tried the Google geocoding web service? Give it an address or 
landmark, and get back latitude/longitude coordinates.

https://developers.google.com/maps/documentation/geocoding/start

Fairly simple to get into, a snap to implement in LiveCode, and free until you 
exceed a certain number of accesses.

Devin



On Apr 3, 2020, at 12:50 PM, Skip Kimpel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

SKIP KIMPEL
___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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


Strange times, amazing projects

2020-04-03 Thread Skip Kimpel via use-livecode
Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

SKIP KIMPEL
___
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: strange problems with SEND: SOLVED

2020-01-17 Thread Klaus major-k via use-livecode
Hi all,

DIY problems are the best, right? 8-)

OK, everything works as advertized when you substitute the CORRECT variable 
for X in for "send... in X secs". I was adding "the seconds" which explains the 
resulting year 2070! :-D

Sorry for the false alarm and thanks for the feedback and hints!
I will better take a rest now...


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi Mark,

> Am 17.01.2020 um 18:31 schrieb Mark Waddingham via use-livecode 
> :
> 
> On 2020-01-17 17:24, Klaus major-k via use-livecode wrote:
>> ouch, sorry, TRUE! :-/
>> However the other message "onlinekursinfo" is also from me and I have
>> no idea why it should be delivered on:
>> Sunday, February 2, 2070, I did not script that!?
> 
> I think you did ... Accidentally...

probably! 8-)

>> THAT script also looked fine in the debugger.
>> Will check again, but 2070 is definitevely WRONG in whatever pending message!
> 
> Remember that pending messages are not deleted by the engine until they fire
> or you issue a cancel command.

yes.

> This code essentially computes the 'future time' the message you were sending
> would fire:
> 
> put the date into tDatum
> convert tDatum from date to dateitems
> add 1 to item 3 of tDatum
> put 8 into item 4 of tDatum
> convert tDatum from dateitems to seconds
> put tDatum - the seconds into tNeuesDatum
> add the seconds to tNeuesDatum -- essentially what 'in time' does
> convert tNeuesDatum from seconds to long system date
> put tNeuesDatum
> 
> Now try removing `- the seconds` from the 6th line and see what date you 
> get...
> 
> (My theory is in some iteration of your code, you missed that out but ran the
> script leaving you with a far future pending message!)

The problem handler is another one, this one does work as exspected! 
Will doublecheck the ahndler in question!

> Warmest Regards,
> 
> Mark.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Mark Waddingham via use-livecode

On 2020-01-17 17:24, Klaus major-k via use-livecode wrote:

ouch, sorry, TRUE! :-/

However the other message "onlinekursinfo" is also from me and I have
no idea why it should be delivered on:
Sunday, February 2, 2070, I did not script that!?


I think you did ... Accidentally...


THAT script also looked fine in the debugger.
Will check again, but 2070 is definitevely WRONG in whatever pending 
message!


Remember that pending messages are not deleted by the engine until they 
fire

or you issue a cancel command.

This code essentially computes the 'future time' the message you were 
sending

would fire:

put the date into tDatum
convert tDatum from date to dateitems
add 1 to item 3 of tDatum
put 8 into item 4 of tDatum
convert tDatum from dateitems to seconds
put tDatum - the seconds into tNeuesDatum
add the seconds to tNeuesDatum -- essentially what 'in time' does
convert tNeuesDatum from seconds to long system date
put tNeuesDatum

Now try removing `- the seconds` from the 6th line and see what date you 
get...


(My theory is in some iteration of your code, you missed that out but 
ran the

script leaving you with a far future pending message!)

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi Matthias,

> Am 17.01.2020 um 17:28 schrieb Matthias Rebbe via use-livecode 
> :
> 
> Tested here with LC 9.51 and 9.6.0DP2 and both were successfull.

yes, error on my side, THIS pending message is correct.
It is another handler that I will have to check again.

Thanks!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi Mark,

> Am 17.01.2020 um 17:29 schrieb Mark Waddingham via use-livecode 
> :
> 
> Double check your pending messages after the send - the line you quoted 
> doesn’t match the name of the handler in send...

ouch, sorry, TRUE! :-/

However the other message "onlinekursinfo" is also from me and I have no idea 
why it should be delivered on:
Sunday, February 2, 2070, I did not script that!?

THAT script also looked fine in the debugger.
Will check again, but 2070 is definitevely WRONG in whatever pending message!

> Warmest Regards,
> 
> Mark.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Matthias Rebbe via use-livecode
Tested here with LC 9.51 and 9.6.0DP2 and both were successfull.

I´ve extended your script, so it also checks/show the delivery time.

on mouseup

put the date into tDatum

convert tDatum from date to dateitems

add 1 to item 8 of tDatum

put 8 into item 4 of tDatum


## dateitems:

# 1. the year

# 2. the month number

# 3. the day of the month

# 4. the hour in 24-hour time

# 5. the minute

# 6. the second

# 7. the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
forth


convert tDatum from dateitems to seconds

put tDatum - the seconds into tNeuesDatum

send "test" to me in tNeuesDatum seconds


put the pendingmessages into tpendingM

filter tPendingM with "*test*"

put item 2 of tPendingM into tDate

convert tDate from seconds to dateitems

put tDate

end mouseup



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 17.01.2020 um 17:11 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
>> Am 17.01.2020 um 16:58 schrieb Klaus major-k via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Just tested this in LC 5.02 and it worked as exspected!
>> The pendingmessages show 1579330812.096689 as "delivery" time
>> which resolves nicely to -> Saturday, January 18, 2020
>> 
>> Tested also in LC 9.05 and it works as exspected, too!?
>> 
>> A new bug? :-/
> 
> maybe this has to do with "centurycutoff"?
> But then this problem should also be in LC 5.02 and 9.05, right?
> 
>>> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> HI all,
>>> 
>>> I want to execute a handler in the future -> tomorrow at 8:00 AM
>>> So I scripted:
>>> ...
>>> put the date into tDatum
>>> convert tDatum from date to dateitems
>>> add 1 to item 3 of tDatum
>>> put 8 into item 4 of tDatum
>>> 
>>> ## dateitems:
>>> # 1. the year
>>> # 2. the month number
>>> # 3. the day of the month
>>> # 4. the hour in 24-hour time
>>> # 5. the minute
>>> # 6. the second
>>> # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
>>> and so forth 
>>> 
>>> convert tDatum from dateitems to seconds
>>> put tDatum - the seconds into tNeuesDatum
>>> send "checkabfrage" to me in tNeuesDatum secs
>>> put the result into checkabfrage_id   
>>> ...
>>> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
>>> correct.
>>> 
>>> However, when I query "the pendingmessages" this message shows up as:
>>> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
>>> 
>>> But 3158550744.943945 as "delivery" time resolves (convert) to: 
>>> long system date -> Sonntag, 2. Februar 2070
>>> long date -> Sunday, february 2, 2070?
>>> date -> 2/2/70
>>> 
>>> Is this broken somehow or am I missing something?
>>> Any insight appreciated!
>>> 
>>> 
>>> Best
>>> 
>>> Klaus
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> kl...@major-k.de
>>> 
>>> 
>>> ___
>>> 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
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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
> 
> --
> Klaus Major
> https://www.major-k.de 
> kl...@major-k.de 
> 
> 
> ___
> 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: strange problems with SEND

2020-01-17 Thread Mark Waddingham via use-livecode
Double check your pending messages after the send - the line you quoted doesn’t 
match the name of the handler in send...

Warmest Regards,

Mark.

Sent from my iPhone

> On 17 Jan 2020, at 15:46, Klaus major-k via use-livecode 
>  wrote:
> 
> HI all,
> 
> I want to execute a handler in the future -> tomorrow at 8:00 AM
> So I scripted:
> ...
> put the date into tDatum
> convert tDatum from date to dateitems
> add 1 to item 3 of tDatum
> put 8 into item 4 of tDatum
> 
>   ## dateitems:
>   # 1. the year
>   # 2. the month number
>   # 3. the day of the month
>   # 4. the hour in 24-hour time
>   # 5. the minute
>   # 6. the second
>   # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
> and so forth 
> 
> convert tDatum from dateitems to seconds
> put tDatum - the seconds into tNeuesDatum
> send "checkabfrage" to me in tNeuesDatum secs
> put the result into checkabfrage_id   
> ...
> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
> correct.
> 
> However, when I query "the pendingmessages" this message shows up as:
> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
> 
> But 3158550744.943945 as "delivery" time resolves (convert) to: 
> long system date -> Sonntag, 2. Februar 2070
> long date -> Sunday, february 2, 2070?
> date -> 2/2/70
> 
> Is this broken somehow or am I missing something?
> Any insight appreciated!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi Bob,

> Am 17.01.2020 um 17:21 schrieb Bob Sneidar via use-livecode 
> :
> 
> This got me thinking, I've pondered a way to run scheduled tasks, and how I 
> would go about it. I think what I would do is have a faceless standalone that 
> once launched sent a command in time every second, or 5 seconds or whatever, 
> and the handler would then check a list or a database for tasks whose 
> datetime was prior to the current time, and were flagged pending. 
> 
> I would then probably through socket communication attempt to trigger the 
> task to my actual application, and if successful mark the task as completed. 
> If the socket comm failed, I would simply do nothing and issue another send 
> in time. 
> 
> The advantage of using a dedicated app is that multiple applications could 
> take advantage of it. A new app could simply register with the timer app 
> again through sockets, and each task would store the name of the registered 
> app in the task, so each app would only get it's own tasks. 
> 
> Probably more than what you want to do though. At the very least you could 
> implement this in app. 

this seems to be an unneccessary big workaround for something that used to work 
right out of the box. 8-)
Remember this works fine in LC 5.02 and 9.05, so this must be a bug.

> Bob S

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Bob Sneidar via use-livecode
This got me thinking, I've pondered a way to run scheduled tasks, and how I 
would go about it. I think what I would do is have a faceless standalone that 
once launched sent a command in time every second, or 5 seconds or whatever, 
and the handler would then check a list or a database for tasks whose datetime 
was prior to the current time, and were flagged pending. 

I would then probably through socket communication attempt to trigger the task 
to my actual application, and if successful mark the task as completed. If the 
socket comm failed, I would simply do nothing and issue another send in time. 

The advantage of using a dedicated app is that multiple applications could take 
advantage of it. A new app could simply register with the timer app again 
through sockets, and each task would store the name of the registered app in 
the task, so each app would only get it's own tasks. 

Probably more than what you want to do though. At the very least you could 
implement this in app. 

Bob S


> On Jan 17, 2020, at 08:11 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
>> Am 17.01.2020 um 16:58 schrieb Klaus major-k via use-livecode 
>> :
>> 
>> Just tested this in LC 5.02 and it worked as exspected!
>> The pendingmessages show 1579330812.096689 as "delivery" time
>> which resolves nicely to -> Saturday, January 18, 2020
>> 
>> Tested also in LC 9.05 and it works as exspected, too!?
>> 
>> A new bug? :-/
> 
> maybe this has to do with "centurycutoff"?
> But then this problem should also be in LC 5.02 and 9.05, right?
> 
>>> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> HI all,
>>> 
>>> I want to execute a handler in the future -> tomorrow at 8:00 AM
>>> So I scripted:
>>> ...
>>> put the date into tDatum
>>> convert tDatum from date to dateitems
>>> add 1 to item 3 of tDatum
>>> put 8 into item 4 of tDatum
>>> 
>>> ## dateitems:
>>> # 1. the year
>>> # 2. the month number
>>> # 3. the day of the month
>>> # 4. the hour in 24-hour time
>>> # 5. the minute
>>> # 6. the second
>>> # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
>>> and so forth 
>>> 
>>> convert tDatum from dateitems to seconds
>>> put tDatum - the seconds into tNeuesDatum
>>> send "checkabfrage" to me in tNeuesDatum secs
>>> put the result into checkabfrage_id   
>>> ...
>>> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
>>> correct.
>>> 
>>> However, when I query "the pendingmessages" this message shows up as:
>>> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
>>> 
>>> But 3158550744.943945 as "delivery" time resolves (convert) to: 
>>> long system date -> Sonntag, 2. Februar 2070
>>> long date -> Sunday, february 2, 2070?
>>> date -> 2/2/70
>>> 
>>> Is this broken somehow or am I missing something?
>>> Any insight appreciated!
>>> 
>>> 
>>> Best
>>> 
>>> Klaus
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> kl...@major-k.de
>>> 
>>> 
>>> ___
>>> 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
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi all,

> Am 17.01.2020 um 16:58 schrieb Klaus major-k via use-livecode 
> :
> 
> Just tested this in LC 5.02 and it worked as exspected!
> The pendingmessages show 1579330812.096689 as "delivery" time
> which resolves nicely to -> Saturday, January 18, 2020
> 
> Tested also in LC 9.05 and it works as exspected, too!?
> 
> A new bug? :-/

maybe this has to do with "centurycutoff"?
But then this problem should also be in LC 5.02 and 9.05, right?

>> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode 
>> :
>> 
>> HI all,
>> 
>> I want to execute a handler in the future -> tomorrow at 8:00 AM
>> So I scripted:
>> ...
>> put the date into tDatum
>> convert tDatum from date to dateitems
>> add 1 to item 3 of tDatum
>> put 8 into item 4 of tDatum
>> 
>>  ## dateitems:
>>  # 1. the year
>>  # 2. the month number
>>  # 3. the day of the month
>>  # 4. the hour in 24-hour time
>>  # 5. the minute
>>  # 6. the second
>>  # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
>> and so forth 
>> 
>> convert tDatum from dateitems to seconds
>> put tDatum - the seconds into tNeuesDatum
>> send "checkabfrage" to me in tNeuesDatum secs
>> put the result into checkabfrage_id   
>> ...
>> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
>> correct.
>> 
>> However, when I query "the pendingmessages" this message shows up as:
>> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
>> 
>> But 3158550744.943945 as "delivery" time resolves (convert) to: 
>> long system date -> Sonntag, 2. Februar 2070
>> long date -> Sunday, february 2, 2070?
>> date -> 2/2/70
>> 
>> Is this broken somehow or am I missing something?
>> Any insight appreciated!
>> 
>> 
>> Best
>> 
>> Klaus
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Just tested this in LC 5.02 and it worked as exspected!
The pendingmessages show 1579330812.096689 as "delivery" time
which resolves nicely to -> Saturday, January 18, 2020

Tested also in LC 9.05 and it works as exspected, too!?

A new bug? :-/

> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode 
> :
> 
> HI all,
> 
> I want to execute a handler in the future -> tomorrow at 8:00 AM
> So I scripted:
> ...
> put the date into tDatum
> convert tDatum from date to dateitems
> add 1 to item 3 of tDatum
> put 8 into item 4 of tDatum
> 
>   ## dateitems:
>   # 1. the year
>   # 2. the month number
>   # 3. the day of the month
>   # 4. the hour in 24-hour time
>   # 5. the minute
>   # 6. the second
>   # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
> and so forth 
> 
> convert tDatum from dateitems to seconds
> put tDatum - the seconds into tNeuesDatum
> send "checkabfrage" to me in tNeuesDatum secs
> put the result into checkabfrage_id   
> ...
> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
> correct.
> 
> However, when I query "the pendingmessages" this message shows up as:
> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
> 
> But 3158550744.943945 as "delivery" time resolves (convert) to: 
> long system date -> Sonntag, 2. Februar 2070
> long date -> Sunday, february 2, 2070?
> date -> 2/2/70
> 
> Is this broken somehow or am I missing something?
> Any insight appreciated!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
Hi all,

this is on LC 9.5.1 on macOS 10.14.6.

> Am 17.01.2020 um 16:46 schrieb Klaus major-k via use-livecode 
> :
> 
> HI all,
> 
> I want to execute a handler in the future -> tomorrow at 8:00 AM
> So I scripted:
> ...
> put the date into tDatum
> convert tDatum from date to dateitems
> add 1 to item 3 of tDatum
> put 8 into item 4 of tDatum
> 
>   ## dateitems:
>   # 1. the year
>   # 2. the month number
>   # 3. the day of the month
>   # 4. the hour in 24-hour time
>   # 5. the minute
>   # 6. the second
>   # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, 
> and so forth 
> 
> convert tDatum from dateitems to seconds
> put tDatum - the seconds into tNeuesDatum
> send "checkabfrage" to me in tNeuesDatum secs
> put the result into checkabfrage_id   
> ...
> Looks OK in the debugger, tNeuesdatum is something like 58000, which is 
> correct.
> 
> However, when I query "the pendingmessages" this message shows up as:
> 39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"
> 
> But 3158550744.943945 as "delivery" time resolves (convert) to: 
> long system date -> Sonntag, 2. Februar 2070
> long date -> Sunday, february 2, 2070?
> date -> 2/2/70
> 
> Is this broken somehow or am I missing something?
> Any insight appreciated!

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


strange problems with SEND

2020-01-17 Thread Klaus major-k via use-livecode
HI all,

I want to execute a handler in the future -> tomorrow at 8:00 AM
So I scripted:
...
put the date into tDatum
convert tDatum from date to dateitems
add 1 to item 3 of tDatum
put 8 into item 4 of tDatum
   
   ## dateitems:
   # 1. the year
   # 2. the month number
   # 3. the day of the month
   # 4. the hour in 24-hour time
   # 5. the minute
   # 6. the second
   # 7. the numeric day of the week where Sunday is day 1, Monday is day 2, and 
so forth 

convert tDatum from dateitems to seconds
put tDatum - the seconds into tNeuesDatum
send "checkabfrage" to me in tNeuesDatum secs
put the result into checkabfrage_id   
...
Looks OK in the debugger, tNeuesdatum is something like 58000, which is correct.

However, when I query "the pendingmessages" this message shows up as:
39440,3158550744.943945,onlinekursinfo,stack "/xxx.livecode"

But 3158550744.943945 as "delivery" time resolves (convert) to: 
long system date -> Sonntag, 2. Februar 2070
long date -> Sunday, february 2, 2070?
date -> 2/2/70

Is this broken somehow or am I missing something?
Any insight appreciated!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: Strange artifacts DG2 on Android and Native fields not always sowing

2019-07-09 Thread JJS via use-livecode

Created a bug report and send video to Panos.

https://quality.livecode.com/show_bug.cgi?id=22231

Op 8-7-2019 om 22:37 schreef JJS via use-livecode:

Hi,


i'm getting strange artifacts on 2 different Android devices.

1st is a tablet Android 4.4.2

2nd is a phone Android 8.1

The DG2 is a table of which i made the rows a bit higher so the text 
is bigger and better readable.


In IDE lc951dp1 it looks perfect, every line on it's own row. If i 
scroll from left to right the header and columns move together.


Now on Android tablet:

2 lines of text are on one row,

if i swipe from left to right then the header is moving together with 
the upper row plus some pixels of the 3rd line on the second row


the other rows/lines are not moving

On Android phone almost the same but here only the header moves plus 
half of the upper row and line, meaning the rest of the pixels of the 
text stay put



Another thing is: i have 2 native fields on the same card as the dg 
and depending on if they want, they appear on screen after hitting the 
Test button in the IDE, so it's random appearing.


While i have a command to set the visible to true in openCard for 
these fields.


And if they appear they seem to be wanted drawn first before anything 
else.



Anything known about such issues?


Thanks!

Jerry(Sphere)


___
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


Strange artifacts DG2 on Android and Native fields not always sowing

2019-07-08 Thread JJS via use-livecode

Hi,


i'm getting strange artifacts on 2 different Android devices.

1st is a tablet Android 4.4.2

2nd is a phone Android 8.1

The DG2 is a table of which i made the rows a bit higher so the text is 
bigger and better readable.


In IDE lc951dp1 it looks perfect, every line on it's own row. If i 
scroll from left to right the header and columns move together.


Now on Android tablet:

2 lines of text are on one row,

if i swipe from left to right then the header is moving together with 
the upper row plus some pixels of the 3rd line on the second row


the other rows/lines are not moving

On Android phone almost the same but here only the header moves plus 
half of the upper row and line, meaning the rest of the pixels of the 
text stay put



Another thing is: i have 2 native fields on the same card as the dg and 
depending on if they want, they appear on screen after hitting the Test 
button in the IDE, so it's random appearing.


While i have a command to set the visible to true in openCard for these 
fields.


And if they appear they seem to be wanted drawn first before anything else.


Anything known about such issues?


Thanks!

Jerry(Sphere)


___
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: Strange error from iOS Standalone Builder

2018-05-29 Thread Bob Sneidar via use-livecode
Not knowing much specifically about these problems, but having some experience 
in secure communications as an IT person, encryption standards are in a state 
of constant flux. Old ciphers are abandoned over time and new ones are 
implemented. I've mentioned before the debaucle in the copier industry (and 
many others I've heard) because of the heart bleed SSL bug which required the 
retooling of *every device* that used the old standards. 

The cure for all this is to try and use the most recent ciphers when possible, 
and that may mean having to create new certs on a regular basis. That is why 
certs have an expiry. That is one of the functions of certificate servers. It's 
one reason why self-signed certs are not trusted by many apps and devices. 

If you are implementing trust and encryption in your apps, this needs to be a 
regular process that you engage in. 

Bob S


> On May 29, 2018, at 08:10 , Ralph DiMola via use-livecode 
>  wrote:
> 
> I got this exact error recently(a week ago) when I renewed my development 
> certificate. I deleted the renewed certificate and then recreated it, 
> downloaded it and then edited all the provisioning profiles and assigned them 
> to the renewed certificate. Deleted all the provisioning profiles on the Mac. 
> Downloaded the provisioning profiles in Xcode. Then all worked again.
> 
> I also deleted all old development certificates in the Keychain app.
> 
> Ralph DiMola


___
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: Strange error from iOS Standalone Builder

2018-05-29 Thread Ralph DiMola via use-livecode
I got this exact error recently(a week ago) when I renewed my development 
certificate. I deleted the renewed certificate and then recreated it, 
downloaded it and then edited all the provisioning profiles and assigned them 
to the renewed certificate. Deleted all the provisioning profiles on the Mac. 
Downloaded the provisioning profiles in Xcode. Then all worked again.

I also deleted all old development certificates in the Keychain app.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Sannyasin Brahmanathaswami via use-livecode
Sent: Monday, May 28, 2018 1:33 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Strange error from iOS Standalone Builder

We had our 3-year hardware refresh (sell all old Macs, enterprise wises and get 
new ones)

and I have a new MacBook Pro.  It still running High Sierra 10.13.4, just as 
the old did

I set up if iOS with new certificate / provisioning profiles

X Code 9.2. / LC9

Run my build on the new machine an got a code error I never seen before
 
Codesign wants to sign using key “brahma dev key”
In your keychain.

To allow this, enter the “login” keychain password.

Password: __



I tried my admin password, it didn’t accept it?

What did I do wrong?





___
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: Strange error from iOS Standalone Builder

2018-05-29 Thread Bob Sneidar via use-livecode
That is a good point. You can have an account with no password set, but a 
number of things will not work with it, including the keychain which I believe 
MUST have a password. 

Bob S


> On May 28, 2018, at 11:16 , prothero--- via use-livecode 
>  wrote:
> 
> I think this is the admin password for your Macintosh. If you haven’t set 
> one, you do this in System Preferences, under the Apple symbol at upper left. 
> Click on “Users and Groups” and you will see the “Change Password” button.
> 
> Bill
> 
> William Prothero
> http://earthlearningsolutions.org
> 
>> On May 28, 2018, at 10:33 AM, Sannyasin Brahmanathaswami via use-livecode 
>>  wrote:
>> 
>> We had our 3-year hardware refresh (sell all old Macs, enterprise wises and 
>> get new ones)
>> 
>> and I have a new MacBook Pro.  It still running High Sierra 10.13.4, just as 
>> the old did
>> 
>> I set up if iOS with new certificate / provisioning profiles
>> 
>> X Code 9.2. / LC9
>> 
>> Run my build on the new machine an got a code error I never seen before
>> 
>> Codesign wants to sign using key “brahma dev key”
>> In your keychain.
>> 
>> To allow this, enter the “login” keychain password.
>> 
>> Password: __
>> 
>> 
>> 
>> I tried my admin password, it didn’t accept it?
>> 
>> What did I do wrong?
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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: Strange error from iOS Standalone Builder

2018-05-28 Thread prothero--- via use-livecode
I think this is the admin password for your Macintosh. If you haven’t set one, 
you do this in System Preferences, under the Apple symbol at upper left. Click 
on “Users and Groups” and you will see the “Change Password” button.

Bill

William Prothero
http://earthlearningsolutions.org

> On May 28, 2018, at 10:33 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> We had our 3-year hardware refresh (sell all old Macs, enterprise wises and 
> get new ones)
> 
> and I have a new MacBook Pro.  It still running High Sierra 10.13.4, just as 
> the old did
> 
> I set up if iOS with new certificate / provisioning profiles
> 
> X Code 9.2. / LC9
> 
> Run my build on the new machine an got a code error I never seen before
> 
> Codesign wants to sign using key “brahma dev key”
> In your keychain.
> 
> To allow this, enter the “login” keychain password.
> 
> Password: __
> 
> 
> 
> I tried my admin password, it didn’t accept it?
> 
> What did I do wrong?
> 
> 
> 
> 
> 
> ___
> 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

Strange error from iOS Standalone Builder

2018-05-28 Thread Sannyasin Brahmanathaswami via use-livecode
We had our 3-year hardware refresh (sell all old Macs, enterprise wises and get 
new ones)

and I have a new MacBook Pro.  It still running High Sierra 10.13.4, just as 
the old did

I set up if iOS with new certificate / provisioning profiles

X Code 9.2. / LC9

Run my build on the new machine an got a code error I never seen before
 
Codesign wants to sign using key “brahma dev key”
In your keychain.

To allow this, enter the “login” keychain password.

Password: __



I tried my admin password, it didn’t accept it?

What did I do wrong?





___
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: Strange problem with tsNet external on Windows

2018-03-16 Thread Graham Samuel via use-livecode
I finally answered my own question - it was simple and I was nearly right in my 
first guess. I forgot to include the ‘Externals’ folder in the files and 
folders encapsulated by the PC installer maker. I suppose I live too much in 
the Mac world. The live program looks for an ‘Externals’ folder in its 
immediate vicinity and if it doesn’t find one, or the contents are wrong, it 
very sensible reports an error. It would be better if the error was “can’t find 
Externals folder” rather than “can’t find tsNet”, but that’s a weak excuse on 
my part.

There you go - deployment stumbling block number 42, I suppose.

Graham

> On 15 Mar 2018, at 16:47, Graham Samuel via use-livecode 
>  wrote:
> 
> 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@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: Strange problem with tsNet external on Windows

2018-03-15 Thread Ralph DiMola via use-livecode
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"&"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
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@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@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

Strange problem with tsNet external on Windows

2018-03-15 Thread Graham Samuel via use-livecode
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: strange behaviour of standalone builder

2018-02-12 Thread Bob Sneidar via use-livecode
Ah. I misunderstood your post. 

Bob S


> On Feb 12, 2018, at 07:53 , Bob Sneidar via use-livecode 
>  wrote:
> 
> This is the same discussion I have been having for over a year now. Maybe 2. 
> The workaround is to only build for one platform at a time, and quit LC 
> between builds. LC seems to be getting confused about which is the original 
> and which is the copy. It makes a mess of the stack files in your project. 
> You will have to go back to the mainstack or whatever you build from and make 
> sure the included files and stack files are not pointing to copies before 
> building again. 
> 
> Bob S
> 
> 
>> On Feb 12, 2018, at 05:25 , Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi friends,
>> 
>> see subject...
>> 
>> I have a folder with a command line utility, one for Mac and one for Windows.
>> I put this into a folder in -> "specialfolderpath("resources") & "/theCLI"
>> adn add it via "Copy files" to my standalone.
>> 
>> Folder structure
>> theCLI (folder)
>> play ## Mac version
>> play.exe
>> an_important.dll
>> 
>> Now after I built a standalone, Windows worked fine, but nothing worked on 
>> my Mac?
>> Usdually it is the other way round ;-)
>> 
>> So I took a look at the Mac application package and found that the 
>> standalone builder 
>> had put the Mac version of the CLI into the ENGINE folder in a "copy?" of 
>> the original folder
>> but only containing the Mac version? 8-)
>> 
>> In the standalone:
>> specialfolderpath("engine")
>> theCLI  (folder)
>>  play ## Mac Version
>> 
>> specialfolderpath("resources")
>> theCLI  (folder)
>>  play.exe
>>  an_important.dll
>> 
>> This is very clever of the engine on one side, but very stupid on the other!?
>> What gives?
>> 
>> So if I now access that CLI in scripts in the standalone via 
>> specialfolderpath("engine")
>> everything works as advertized, but this cannot be the real McCoy, does it?
>> 
>> Now the thing does not work in the IDE unless I script also to differ 
>> between 
>> IDE and standalone, no big fun really, sigh.
>> 
>> Tested with LC 8.1.9 stable and LC 9dp 11.
>> 
>> Bug or (very undocumented) feature?
>> Or just a egomaniacal behaviour of the engine?
>> 
>> Any hints, comments and whatnot very appreciated! :-)
>> 
>> 
>> Best
>> 
>> Klaus
>> --
>> Klaus Major
>> http://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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: strange behaviour of standalone builder

2018-02-12 Thread Bob Sneidar via use-livecode
This is the same discussion I have been having for over a year now. Maybe 2. 
The workaround is to only build for one platform at a time, and quit LC between 
builds. LC seems to be getting confused about which is the original and which 
is the copy. It makes a mess of the stack files in your project. You will have 
to go back to the mainstack or whatever you build from and make sure the 
included files and stack files are not pointing to copies before building 
again. 

Bob S


> On Feb 12, 2018, at 05:25 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> see subject...
> 
> I have a folder with a command line utility, one for Mac and one for Windows.
> I put this into a folder in -> "specialfolderpath("resources") & "/theCLI"
> adn add it via "Copy files" to my standalone.
> 
> Folder structure
> theCLI (folder)
>  play ## Mac version
>  play.exe
>  an_important.dll
> 
> Now after I built a standalone, Windows worked fine, but nothing worked on my 
> Mac?
> Usdually it is the other way round ;-)
> 
> So I took a look at the Mac application package and found that the standalone 
> builder 
> had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the 
> original folder
> but only containing the Mac version? 8-)
> 
> In the standalone:
> specialfolderpath("engine")
> theCLI  (folder)
>   play ## Mac Version
> 
> specialfolderpath("resources")
> theCLI  (folder)
>   play.exe
>   an_important.dll
> 
> This is very clever of the engine on one side, but very stupid on the other!?
> What gives?
> 
> So if I now access that CLI in scripts in the standalone via 
> specialfolderpath("engine")
> everything works as advertized, but this cannot be the real McCoy, does it?
> 
> Now the thing does not work in the IDE unless I script also to differ between 
> IDE and standalone, no big fun really, sigh.
> 
> Tested with LC 8.1.9 stable and LC 9dp 11.
> 
> Bug or (very undocumented) feature?
> Or just a egomaniacal behaviour of the engine?
> 
> Any hints, comments and whatnot very appreciated! :-)
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: strange behaviour of standalone builder

2018-02-12 Thread Klaus major-k via use-livecode
Hallo Hermann,

> Am 12.02.2018 um 15:22 schrieb hh via use-livecode 
> :
> 
> Hi Klaus,
> the move to "engine" is documented, see specialfolder/engine.
> 
> This is the only "logic" way to do that because your "CLI" files are 
> executables.
> That is Mac is correct in docu and building the standalone.
> 
> The bug is now either the docu for Win/linux or the not-moving on Win/linux.

AHA, thank you!
Did not exspect this, but you are right, of course!, about the docu:
...
"engine": The folder containing the LiveCode engine and the executable files 
copied in the standalone application
...
I did not fully understand the "...and the executable files" part, obviously.

Mistery solved, case closed! :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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: strange behaviour of standalone builder

2018-02-12 Thread hh via use-livecode
Hi Klaus,
the move to "engine" is documented, see specialfolder/engine.

This is the only "logic" way to do that because your "CLI" files are 
executables.
That is Mac is correct in docu and building the standalone.

The bug is now either the docu for Win/linux or the not-moving on Win/linux.

> Klaus M. wrote:
> Hi friends,
> 
> see subject...
> 
> I have a folder with a command line utility, one for Mac and one for Windows.
> I put this into a folder in -> "specialfolderpath("resources") & "/theCLI"
> adn add it via "Copy files" to my standalone.
> 
> Folder structure
> theCLI (folder)
>   play ## Mac version
>   play.exe
>   an_important.dll
> 
> Now after I built a standalone, Windows worked fine, but nothing worked on my 
> Mac?
> Usdually it is the other way round ;-)
> 
> So I took a look at the Mac application package and found that the standalone 
> builder 
> had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the 
> original folder
> but only containing the Mac version? 8-)
> 
> In the standalone:
> specialfolderpath("engine")
>  theCLI  (folder)
>play ## Mac Version
> 
> specialfolderpath("resources")
>  theCLI  (folder)
>play.exe
>an_important.dll
> 
> This is very clever of the engine on one side, but very stupid on the other!?
> What gives?
> 
> So if I now access that CLI in scripts in the standalone via 
> specialfolderpath("engine")
> everything works as advertized, but this cannot be the real McCoy, does it?
> 
> Now the thing does not work in the IDE unless I script also to differ between 
> IDE and standalone, no big fun really, sigh.
> 
> Tested with LC 8.1.9 stable and LC 9dp 11.
> 
> Bug or (very undocumented) feature?
> Or just a egomaniacal behaviour of the engine?
> 
> Any hints, comments and whatnot very appreciated! :-)
> 

___
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


strange behaviour of standalone builder

2018-02-12 Thread Klaus major-k via use-livecode
Hi friends,

see subject...

I have a folder with a command line utility, one for Mac and one for Windows.
I put this into a folder in -> "specialfolderpath("resources") & "/theCLI"
adn add it via "Copy files" to my standalone.

Folder structure
theCLI (folder)
  play ## Mac version
  play.exe
  an_important.dll

Now after I built a standalone, Windows worked fine, but nothing worked on my 
Mac?
Usdually it is the other way round ;-)

So I took a look at the Mac application package and found that the standalone 
builder 
had put the Mac version of the CLI into the ENGINE folder in a "copy?" of the 
original folder
but only containing the Mac version? 8-)

In the standalone:
specialfolderpath("engine")
 theCLI  (folder)
   play ## Mac Version

specialfolderpath("resources")
 theCLI  (folder)
   play.exe
   an_important.dll

This is very clever of the engine on one side, but very stupid on the other!?
What gives?

So if I now access that CLI in scripts in the standalone via 
specialfolderpath("engine")
everything works as advertized, but this cannot be the real McCoy, does it?

Now the thing does not work in the IDE unless I script also to differ between 
IDE and standalone, no big fun really, sigh.

Tested with LC 8.1.9 stable and LC 9dp 11.

Bug or (very undocumented) feature?
Or just a egomaniacal behaviour of the engine?

Any hints, comments and whatnot very appreciated! :-)


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Monte Goulding via use-livecode

> On 31 Oct 2017, at 9:40 pm, Ben Rubinstein via use-livecode 
>  wrote:
> 
> Is there some way that calling 'shell' enters a context with less permission 
> than the app which calls it? And is there something I can do about this?

LiveCode’s shell function on windows is basically telling cmd.exe to run the 
command. I have run into permissions issues before on school networks that have 
policies that block the use of the command prompt. In that case moving to open 
process with a read from process loop worked around the policy. You might try 
that. It could be in the scheduled task environment there is something missing 
that cmd.exe needs.

Cheers

Monte
___
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: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Mike Bonner via use-livecode
nvm my response, my earlier message poofed due to size. *sigh* here goes
again...

one thing you might try is to look at the properties for the scheduled
job.  You obviously have it set to "run whether user is logged in or not"
but i'm wondering if "do not store password" box is checked. If it is,
might test with it unchecked.  there is also a box for "use highest
permissions" that you might try if the first idea fails.

disclaimer:  I have no idea how this would affect machine security.

Also, there is a button that allows you to change user or group, I don't
know how to do so, but if you can give a group permission to run pslist,
and then set the task to that group, that might be a way also.

Here is the screen i'm looking at for all this...
https://www.dropbox.com/s/0chbhqcn8hi4cu1/image%20%281%29.png?dl=0

On Tue, Oct 31, 2017 at 10:32 AM, Mike Bonner  wrote:

> i'm on 10, no clue what earlier versions would look like.
>
> On Tue, Oct 31, 2017 at 10:23 AM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Windows 10?
>>
>> Bob S
>>
>>
>>
>> ___
>> 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: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Mike Bonner via use-livecode
i'm on 10, no clue what earlier versions would look like.

On Tue, Oct 31, 2017 at 10:23 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Windows 10?
>
> Bob S
>
>
>
> ___
> 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: Strange permissions issues calling 'shell' in Windows

2017-10-31 Thread Bob Sneidar via use-livecode
Windows 10?

Bob S



___
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


  1   2   3   4   5   >