Modal command does not pause anymore the calling script
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Modal command does not pause anymore the calling script
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 ?
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 ?
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
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)
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)
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.
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.
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
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.
Code: Select all
answer "All files loaded!"
quit
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
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...)
the
Code: Select all
answer "All files loaded!"
quit
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...)