|
Thanks for the reply. Your answer begs the question How
do I start a new thread in Lua / IUP? I am using popen because I
thought you couldn’t create threads from Lua… Regards Bob From:
lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Antonio Scuri I think that you should do that in a second thread
and leave the iup.MainLoop working free. This should also reduce processor
usage. Best, scuri From:
lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Bob Hibberdine Hi all, I have an Lua / IUP
script that runs other scripts which in turn run external programs. This is all
running with Lua For Windows. I use io.popen to
start any external [program and wait in a loop for an EOF from the output
pipe. Within this loop I call iup.flush{} to keep the parent Windows GUI app
“alive” This all works fine
for as long as there is output from the external program. If not, the read from
the pipe blocks (until the program ends) and my Windows GUI freezes. Is there a simple way
around this without using specialist libraries etc? Can you do
non-blocking IO with standard Lua? Many Thanks, Bob ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |