[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: evaluatin IupLua [was: Re: ANN: luacheia alpha1 release9
- From: Gunnar Zötl <gz@...>
- Date: Thu, 7 Aug 2003 10:20:06 +0200
Hi there,
on the subject of IupLua, I am also playing around with it, and like
it very much so far. There is one thing that strikes me as odd, though:
if there is a runtime error in the IupLua script, the interpreter
exits silently. This is on Windows. I tried to encapsulate my main
program in a pcall, but found out that the main lua script continues
running after I call show on any dialogs. That is, it does not wait
for completion. (This also has the side-effect that if I start a
script using "iuplua5 myapp.lua", it terminates immediately)
A simple loop along the lines of
while dialog.visible do
something
end
seems to work, but eats CPU cycles, if "something" is essentially
empty. What I would like to have is a way to block the lua app until a
certain window is closed, without eating up the CPU with a tight loop
(or at least something like "sleep()"). Does anyone have any idea on
this subject?
rgs,
Gunnar
--
"They that can give up lib- Gunnar Zötl Tel. 06071-612079
erty to obtain a little Friedhofstraße 55 Fax. 01212-512317564
temporary safety deserve 64859 Eppertshausen E-mail gz@tset.de
neither liberty nor safety" - Benjamin Franklin, 1706-1790