Page 1 of 1

bug?

Posted: Thu Oct 15, 2009 6:55 pm
by mtecedor
Hi again,

I think I am loosing it.

Every time I open some of my stacks, the message box appears with the following message

"copy card "Map1" to stack "Map"
true

This is a message a writo time ago for another stack, but I dont know how to make it dissapear. It only appears when I open some of the stacks I have created.

I also think that this message is making my stacks to work in a extrange way. Sometime my objects work in the way I programmed them, sometimes not.

I have to create new stacks from scratch. The frist time they always work perfectly, as soon as I save them and I open them again, the message appear again and nothing works as I want to.

Have you seen anything similar? Any suggestions on how to fix this problem?

Marta

Message before opening

Posted: Thu Oct 15, 2009 7:05 pm
by mtecedor
Now I also get another message every time I try to open one of my stacks.

The message says:
"The handler: revUpdateActiveStack has reached the recursion limit of : 400000. Execution will be terminated to prevent hang"

Any idea on what's going on?

Posted: Thu Oct 15, 2009 7:58 pm
by bn
Marta,
try to open the application browser in the tools menu when you start up Rev. Are there any stacks you did not start?

The stack could be invisible, by hiding it, but in the application browser you should see it. If there is a unwanted stack then you can double click it to make it visible.

Some time ago I had a problem that Rev started some of my stacks and I did not know why and then the problem disapeared. I think I deleted my preferences, but I dont remember well.

Apparently there is a stack that has a handler in openstack or preopenstack or opencard that does the copying.

The recursion could be related to a stack that does the copying, by copying doing a new copy maybe in a openstack/opencard handler.

Did you ever name any of your stacks with a name starting with rev?

regards
Bernd

Posted: Thu Oct 15, 2009 8:06 pm
by mtecedor
Hi Bernd,

I did what you said, but no, there are not stacks in the application browser. I always click the "purge on close" option when I create a new stack. And I haven't name any of my stacks starting with rev.

Marta

Posted: Thu Oct 15, 2009 8:36 pm
by mtecedor
I decided to start again from scratch and check all my steps. Everything was ok until I wrote the following script into one of the cards.

Is it possible that there is something wrong with this script that makes the message box appear?

global hiliteCounter, hilitedList

on preOpencard
put empty into field "output"
set the invisible of field "Warning" to true
put hiliteCounter = 0 --Do I need this?
set the backgroundcolor of char 1 to 1000 of field "Text2" to empty --is there a better way to do this?
end preOpencard

Posted: Thu Oct 15, 2009 8:58 pm
by bn
Strange,
put hiliteCounter = 0 --Do I need this?
you dont need this since all it does is open the message box and puts 'false' into the message box if the global hiliteCounter is not 0, if it is 0 it puts true into the message box. But it does nothing to your code except putting it into the message box.
You might as well block it
set the backgroundcolor of char 1 to 1000 of field "Text2" to empty
it will not hurt, if it works its ok for the moment.

But if you rebuild your stack, what about the copy message and the recursion limit, did that go away?

If the only problem right now it the message box appearing that should be solved by taking out the one line of code with put the hiliteCounter..

BTW, in Rev if you start a line of code with put something and you dont provide a destination it always opens the message because that is a short hand form for 'put something into message' or 'put something into msg'
regards
Bernd

Posted: Thu Oct 15, 2009 9:03 pm
by malte
Hi Marta,

what is the name of the stack you open? What happens when you lock messages before opening the stack?

Cheers,

Malte