Going crazy with closing a stack
Doug Lerner
doug at webcrossing.com
Sun Feb 1 18:17:49 EST 2004
On 2/2/04 2:54 AM, "Robert Brenstein" <rjb at rz.uni-potsdam.de> wrote:
>> When I close a stack in which the video grabber is embedded, I am trying to
>> clean up as follows:
>>
>> on closeStack
>> global recordvideo
>> answer "closing stack " & the short name of this stack
>> put false into recordvideo
>> revCloseVideoGrabber
>> end closeStack
>>
>> Putting false into recordvideo should stop the repeat loop needed for QT, as
>> per the sample stack and docs. revCloseVideoGrabber should close the video
>> grabber. The answer command should at least acknowledge that the stack is
>> being closed.
>>
>> BUT... even if I close the stack manually, the answer dialog doesn't even
>> appear.
>>
>> The closeStack handler is just not being called. And it is a handler local
>> to the stack itself!
>>
>> What might block the closeStack message from being sent to this stack
>> handler?
>>
>> Thanks,
>>
>> doug
>
> I believe that the closeStack is sent as expected. However, the
> engine is closing fast and the dialog is not showing up. It is known
> that it does not wait for dialogs at that stage. If you want to pop a
> dialog, use the closeStackRequest. JUst make sure to pass it or the
> stack will never close.
I know the local closeStack is not getting handled for other reasons though.
For example, "false" is not get put into recordvideo and
revCloseVideoGrabber is not getting called.
doug
More information about the use-livecode
mailing list