Something strange...won't compile.

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
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Something strange...won't compile.

Post by bjb007 » Sun Aug 03, 2008 4:35 am

Have a prog which works fine in the IDE
(although it loads slowly-see below for reason)
but won't compile. It stalls with the message
"Removing development properties and setting
profile options".

I see from the archive copies that the size of
the .rev file suddenly jumped from 104k to
697k then to 793k.

When I open the inspector to see what all this
stuff is the message is "Too many controls to
display 2818".

Wonder where all those controls came from?

This was a minor code change and I've used
the previous version to get what I wanted but
would like to know what has happened and
what I would do if I wasn't using revAltArchive.
Life is just a bowl of cherries.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Post by Bernard » Sun Aug 03, 2008 7:54 am

I assume you have some script that creates objects? If so, it sounds like that went out of control.

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Something strange...won't compile.

Post by bjb007 » Thu Aug 07, 2008 3:45 pm

Bernard
You got it in one!

While getting a script to work it
was producing hundreds of graphics
by cloning and the code to delete them
wasn't working because I'd changed the
names of the clones.

Just by guessing I was able to set up
a loop (i = 1 to 999) and get rid of
them but wonder how I could have
tackled it if the names had eluded me.

The Property Inspector's no help once
the object count gets to 2000 or so...
gives an error "too many objects to display".
Life is just a bowl of cherries.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

try RevNavigator

Post by Bernard » Thu Aug 07, 2008 4:30 pm

Since Rev is basically entirely scriptable, you can write scripts that will list all the controls in a stack. That's basically what the application browser is doing. It's probably not unreasonable that there is some limit to stop it displaying thousands of controls.

Without going into the details of how to write the scripts I allude to (there are examples of these kinds of scripts in the forum and in the mailing list archive), you could have a look at the Plugins that come installed with Rev (not sure if they are installed with Rev Media, but certainly with Studio and Enterprise). Among those plugins is one called RevNavigator. It's quite old (there is a more recent version on the author's website), but as it is like a purely textual application browser, it may not have these limits anyway, so it might work in such circumstances as you got yourself into.

Frankly, RevNavigator is such a useful tool, I urge every one to activate that in the Plugin Manager. Since I started to use this navigator, I've never even opened the application browser. BTW, if you do use RevNavigator, a click on it's title bar will shrink it down to a single line and move it out of your way.

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

RevNavigator

Post by bjb007 » Fri Aug 08, 2008 2:53 am

Had a look at the latest RevNavigator.

The default setting for number of objects
to list is 10,000. That should cover most
eventualities! The "click on title bar to
minimize" doesn't seem to work. Do
you mean on the "X" button? Seems to
close it.

Thanks for the tip Bernard.

Expect this will become a "must have"
plugin - along with revAltArchive and
revPointerToolTip!

Do you have any other favourite plugins?
Life is just a bowl of cherries.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Post by Bernard » Fri Aug 08, 2008 9:16 am

I'm extremely conservative when adding to my environment, hence it took me 5 years before I tried RevNavigator. :-/ I also recently started using the GLX2 script editor/debugger. That is an amazing step up from using the native Rev IDE script editor. I feel like I've had one of my hands chopped off when I occasionally go back to using the Rev script editor. And GLX2 automatically saves 20 archived copies of each stack - that's soothed my anger when Rev's crashed and I would have otherwise lost an hour of work.

Otherwise I have nothing to suggest. But it might be worth posting a new topic, and see what plugins other people use. There are probably a lot I don't know, and others I just never saw the point of.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Post by Bernard » Fri Aug 08, 2008 10:01 am

A couple of things that just came to me:

You have to double-click on RevNavigator to minimize it.

One library I make a lot of use of is ErrorLib from here:
http://economy-x-talk.com/developers.html

I don't think it has general purpose applicability, but for the times when Rev churns out number-only error messages, it's very useful for deciphering them. However, I seem to remember that Mark has now turned this into a web app where you can just put the numbers in and it will decipher the error message for you. But then again, if you've never had these kinds of error messages, you don't need this (yet...)

Post Reply