I've got an awful feeling ...

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

I've got an awful feeling ...

Post by dalkin » Thu Jun 26, 2008 5:28 am

I've been building this one for a while and decided to look at a few of the sample stacks in the rev online viewer. I looked at several, and after saving and closing my standalone project, suddenly encountered the following error on clicking a button that previously simply loaded a simple stack:
Image

The only trouble is, my entire project is not predicated on any sort of database whatsoever. It looks as though just by looking at sample stacks, including a couple of sample DB stacks, my project has somehow "inherited" some of the properties. I've checked all the script buttons and they're all clean. This only happens on one button but it happens on that button throughout the whole project.

Any thoughts?
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Thu Jun 26, 2008 8:11 am

post the buttons script, it just sounds like a conflict.

Are any of the stacks you looked at still in memory? Are you using any reserved names?

dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Post by dalkin » Thu Jun 26, 2008 8:45 am

Well ... that's the thing. The script that opens the stack is simply:

on mouseUp
go to stack "Ideas for Jokes"
end mouseUp

The other strange thing is that when I click the error box away, the stack then opens but I'm then unable to drag it by the menu bar on the 1st attempt - the 2nd attempt drags it as it should.

The result is the same whenever I call the script in the build. I also used the "Close and remove from memory" command
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Thu Jun 26, 2008 9:08 am

Did you accidently make any of the stacks you were looking at a substack?

in the messagebox try

put the substacks of stack "yourStackName"

Also, what is in the card and stack script of the stack you are going to?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Jun 26, 2008 9:13 am

Hi Dalkin,

What happens if you quit Revolution, re-open it without opening any stacks, and then open the stack "Ideas for Jokes.rev" (or whatever the filename is) directly?

If Ideas for Jokes is a substack of another stack, you might want to type

clone stack "Ideas for Jokes"

in the message box and type enter and save the stack as "Ideas for Jokes.rev" before quitting and re-opening Revolution.

How much time is there between the first and the second attempt to drag your stack around?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Post by dalkin » Thu Jun 26, 2008 9:49 am

Thanks everyone.

Message watcher shows the following up to the point the button is clicked:

Image

Quit/reopen/open "IFJ" reproduces the error
Clone stack also reproduces the error then proceeds with cloning the stack.
The cloned stack also reproduces the error and if anyone wants to take a look, I've loaded it to:

http://www.cartooningschool.com.au/websnap/jokes.rev

If it reproduces on your machine, the bug is in the stack, if not, it's in my rev build I guess.
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Jun 26, 2008 10:20 am

Hi Dalkin,

Open your stack and then open the Database Query Builder from the Tools menu. Delete query 1. This should fix it.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

dalkin
Posts: 183
Joined: Wed Jul 04, 2007 2:32 am
Contact:

Post by dalkin » Thu Jun 26, 2008 10:46 am

Many thanks Mark, any ideas as to how it got there? I swear on a stack of Rev manuals I didn't make any entries there!
The underlying purpose of Al is to allow wealth to access skill
while removing from the skilled the ability to access wealth.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Jun 26, 2008 5:06 pm

I have no idea, Dalkin.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply