Re: Stacks not removed from memory?

2021-05-15 Thread J. Landman Gay via use-livecode
On 5/15/21 9:56 AM, Bob Sneidar via use-livecode wrote: I agree that when a handler refers to this stack, it should ALWAYS refer to the stack the script object belongs to. That would be a catasrophe when the handler is in a library or a backscript. I use "this stack" in those. It would be

Re: Stacks not removed from memory?

2021-05-15 Thread Bob Sneidar via use-livecode
This issue is so pervasive that I ended up converting all of my relative references to absolute ones. I wrote two handlers, getParentCard and getParentStack, so when I need absolute references I put getParentCard() into tParentCard and then use of tParentCard after any object I need to

Re: Stacks not removed from memory?

2021-05-14 Thread Curry Kenworthy via use-livecode
Richard: > Because if it's just the stack name conflict thang, > I'd rather we solve that at the root by being done > with that IDE-imposed limitation Yes, good idea. I would be happy if LC either: 1. Solves it at the root, per RG suggestion. 2. Fixes what they already have, in the IDE.

Re: Stacks not removed from memory?

2021-05-14 Thread J. Landman Gay via use-livecode
On 5/14/21 2:49 PM, Marty Knapp via use-livecode wrote: When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Thanks. So many things can legitimately change the value of "this" I generally prefer more explicit references. Maybe with this apparent bug there's one more reason I'm grateful to have adopted this habit. -- Richard Gaskin Fourth World Systems When you close a stack that has its

Re: Stacks not removed from memory?

2021-05-14 Thread Marty Knapp via use-livecode
When you close a stack that has its destroyStack set to true, it should not remain in memory. In my case it also seems to get stuck as the default stack. Even if my preference stack did not remove from memory as it should, specifically going to stack "XYZ" and setting it as the defaultStack,

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Thanks, Marty. I used to use stacks for preferences, but I found arrays to be simpler in addition to being slightly faster. But it seems the core of your issue isn't so much about LC's cache management as with object referencing with "this" - do I understand the issue correctly? --

Re: Stacks not removed from memory?

2021-05-14 Thread Marty Knapp via use-livecode
It’s happening for me in standalone. And I should mention that my tests were on Mac only (Mojave). Marty > On May 14, 2021, at 10:59 AM, Niggemann, Bernd via use-livecode > wrote: > > If the Project Browser is open then it may be related to > >

Re: Stacks not removed from memory?

2021-05-14 Thread Niggemann, Bernd via use-livecode
If the Project Browser is open then it may be related to https://quality.livecode.com/show_bug.cgi?id=22460 Kind regards Bern ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Stacks not removed from memory?

2021-05-14 Thread Mark Wieder via use-livecode
On 5/14/21 10:05 AM, Richard Gaskin via use-livecode wrote: Is this to avoid stack name conflicts, or is there some other reason to use this feature? Because if it's just the stack name conflict thang, I'd rather we solve that at the root by being done with that IDE-imposed limitation that

Re: Stacks not removed from memory?

2021-05-14 Thread Marty Knapp via use-livecode
In my case it's not a name conflict. Lets say I have a main stack "XYZ" and then I query a separate Preference stack: put the cpCustomProperty of stack "full_path_to_pref_stack" into tPref close stack "pref_stack" (my preference stack has destroyStack set to true) Now thinking that I'm back in

Re: Stacks not removed from memory?

2021-05-14 Thread Richard Gaskin via use-livecode
Devin Asay wrote: > I have seen what you’re describing on all of the recent releases—9.5 - > 9.6.x; i.e., a stack with destroyStack set to true, then closed, is > not always removed from memory. Sometimes this has caused an infinite > loop with the Save - Purge - Cancel dialog. I would report

Re: Stacks not removed from memory?

2021-05-14 Thread Devin Asay via use-livecode
Marty, I had intended to respond to this, but got busy with other things. I have seen what you’re describing on all of the recent releases—9.5 - 9.6.x; i.e., a stack with destroyStack set to true, then closed, is not always removed from memory. Sometimes this has caused an infinite loop with