revCursors magically attaches to my stacks

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 365
Joined: Mon Jun 10, 2013 1:32 pm

Re: revCursors magically attaches to my stacks

Post by Lagi Pittas » Wed Dec 18, 2019 12:47 pm

Hi

12 years later and I get it again after a year without getting it.
I think the "Recipe" is - you rename the stack and then do a build.
The system get's it's knickers in a twist (technical explanation).
The fix above from mark still works and to save people looking ...

Code: Select all

lock messages
delete stack "revCursors" of stack "myStack"
save stack "myStack"
unlock messages
Lagi

EAL
Posts: 1
Joined: Wed Jan 22, 2020 11:45 am

Re: revCursors magically attaches to my stacks

Post by EAL » Wed Feb 05, 2020 11:25 am

Hi all,

I am getting this repeatedly when saving as standalone.
I also get strange cursor icons, or there is no icon at all.
Do I need a revCursors stack in my project when I save as standalone?
But why the error messaage: already in memory?

But why oh why am I getting also the stacks Color Chooser, File Selector, Page Setup, Page Setup Dialog, Print Dialog and Printer Chooser?

What do I need to do to restore the cursors to what I see in the developing environment?

TIA

Elly

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: revCursors magically attaches to my stacks

Post by FourthWorld » Wed Feb 05, 2020 4:08 pm

Those stacks are normally added only to a copy of the mainstack when a standalone is built.

The recipe for removing them is above in an earlier post.

I'm very interested in seeing if we can reproduce this so it can be prevented.

@Lagi, is your recipe a reliable means of reproducing this issue?

@anyone: has a bug report been filled against this?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: revCursors magically attaches to my stacks

Post by dunbarx » Wed Feb 05, 2020 5:54 pm

QCC shows nothing when I searched for "revCursors"

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: revCursors magically attaches to my stacks

Post by FourthWorld » Wed Feb 05, 2020 8:05 pm

dunbarx wrote:
Wed Feb 05, 2020 5:54 pm
QCC shows nothing when I searched for "revCursors"
Thanks for checking, Craig.

Anyone with a recipe for reproducing this have a moment to submit a report for it?
https://quality.livecode.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 365
Joined: Mon Jun 10, 2013 1:32 pm

Re: revCursors magically attaches to my stacks

Post by Lagi Pittas » Thu Feb 06, 2020 11:47 am

Hi Richard,

I would'nt say its 100% foolproof because if memory serves, whenever I "savesas" to change the name (not the first time) and then I did a compile more often than not the problem surfaced - so I make sure if I do a "saveas" I exit LC and come back in - which is why I went for over a year without it happening.

Just decided to test my hypothyesis ... and it turns out to be a wild goose chase.

I took a single stack with maybe 25 lines of code , did a save as and tried to compile a standalone. It came back with that useless error of "there is a stack with the same name" Save, Cancel , Purge - which always seems to go into a loop whatever I press, but no cursor problem.

I then did the same for the main stack with thousands of lines and multiple stacks where this problem has surfaced before, and guess what? It compiled without a problem. I tried a second time (I don't trust computers :wink: ) still no problems. Then again I think I have only had the problem once in the 9X series - it happened multiple times in the 6x series.

Sorry for the false "recipe"

Lagi

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: revCursors magically attaches to my stacks

Post by FourthWorld » Thu Feb 06, 2020 3:26 pm

Thanks for testing that out, Lagi. At least we can now rule out one hypothesis.

We're not seeing a lot of these issues, but just enough that I still wonder if it's either a bug in the IDE, or something the IDE may be enhanced to prevent.

As I see more cases I'll try to work with those affected to see what we can learn. So far it's only about three, free enough that it's not likely a simple recipe, but just enough to suggest some sort of workflow pattern.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Talking LiveCode”