Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.



On 27 апр, 23:15, David Gravereaux <davyg...@xxxxxxxxx> wrote:
Wait a sec here... You aren't running the event loop!? See Tk_Main and
Tk_MainLoop in the Tk source to understand why you need to.


I altered my code.
I tried with async handlers (Tcl_AsyncCreate...) and with event loop
(Tcl_CreateEventSource..., Tcl_DoOneEvent), but i not gained
functionality that i expected.

Problem is that scripts not executes asyncronously. Consider playing
script (play.tcl) from first topic. It can execute indefinitely long
time. While testing with event loop i see that Tcl_DoOneEvent not
returns while sound is playing. So, i can not call other commands,
that pauses or stops playing script.

.



Relevant Pages