Page 1 of 1
Modal command does not pause anymore the calling script
Posted: Thu Aug 06, 2009 6:30 pm
by trevix
Rev 3.5
All of a sudden, the script that open a substack as modal does not pause anymore while the modal substack is open (used to work fine. Now sometime it still does).
Any clue ?
Posted: Fri Aug 07, 2009 1:22 pm
by shadowslash
Can you provide a sample script? At what point does it work? At what point does it not?
Posted: Fri Aug 07, 2009 4:14 pm
by trevix
I did further investigation:
With a brand new stack, the problem does not exist.
My script is too long to bring it here. The problem is herratic... it seem that it works on the first run of the stack, but not always.
But the same script on a previous version of the stack does not have the problem.
As a byproduct, a debug stop (even a breakpoint) on the preopencard script of the modal stack does not stop the script (but the script is run...)
I was hoping there was some known bug and I could just replace some Rev preferences to solve the problem (done, but it does not work)
Posted: Fri Aug 07, 2009 7:58 pm
by malte
Hi Trevix,
any chance that the substack you call is invisible? If so modal will not work and imediately close the substack. Could you try in your script:
show stack "yourSubstack"
modal "yourSubstack"
Does that make any difference?
Cheers,
Malte
Posted: Fri Aug 07, 2009 8:16 pm
by trevix
There is already a show stack before the modal call.
I solved the problem going back to the previous version of my stack and updating the changes.
Now the modal call stop the script. But the PreOpenStack on it still cannot be debugged and i think this is the culpit:
I've noticed before that sometime the red dots do not stop the script for debugging. Some do, other dont. You often have to put them again on place.
And this is a bug for shure...
Thanks anyway.
Posted: Tue Aug 11, 2009 10:24 am
by Klaus
I also encountered this strange and not reproducable! problem in a simply script like:
...
answer "All files loaded!"
quit
...
I almost never saw the dialog, the app quit immediately WITHOUT waiting for the dialog to close! :/
Best
Klaus
Posted: Tue Aug 11, 2009 12:27 pm
by shadowslash
I alos tried Klaus's
script and it works for me. Revolution doesn't quit until I press the OK button. I got 4.0.0-dp-3.
Posted: Tue Aug 11, 2009 1:38 pm
by Klaus
Lucky you!

Posted: Wed Aug 12, 2009 12:26 pm
by shadowslash
Klaus wrote:Lucky you!

I think it's an OS-related bug. Are you guys using Mac OS? I'm in a Windows XP SP2 computer.
Posted: Wed Aug 12, 2009 1:32 pm
by Klaus
shadowslash wrote:Klaus wrote:Lucky you!

I think it's an OS-related bug. Are you guys using Mac OS? I'm in a Windows XP SP2 computer.
LOL
You made my day

Posted: Thu Aug 13, 2009 11:58 am
by trevix
Funny indeed...
the
works on OSX.
Sometime, in my scripts, I am able to resolve the thing adding a "wait 100 milliseconds"
It's like if Rev cannot cach up with the script...
I have not tested the problem in a compiled application (I wonder...)