[Gambas-user] wait vs sleep confusion, console works, graphically have strange behabior
PICCORO McKAY Lenz
mckaygerhard at ...626...
Mon Nov 11 18:06:51 CET 2013
From: Tobias Boege <taboege at ...626...>
> Sleep puts the program to sleep - literally. It just waits for a given time
> to elapse and then resumes execution.
all programs inherint and parent? !! ok thnks for clarification! but
some details more:
>
> Wait, OTOH, keeps the interpreter active by recursively calling the event
> loop. This way, events can fire, the GUI can be updated, etc..
ok but if i used waith in console? i do not note the behabior¿? that's
why i made the question as u see
>
> The thing with the console you mentioned maybe happens as follows (you
> didn't really provide details): you call an external program through Shell
> which is not affected by your program being asleep. If you don't catch the
> output from the Shell instruction (or redirect it), it will be shown in the
> IDE console, no matter if your program is Sleeping or whatever.
ok but i try also calling other things internally inside lopp and do
not have same behabior as when use gui forms
>
--
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
More information about the User
mailing list