[Gambas-user] gb.task and the event loop?
Tobias Boege
taboege at ...626...
Tue Dec 25 15:15:53 CET 2012
On Tue, 25 Dec 2012, Olivier Cruilles wrote:
> Hello,
>
> Try this one:
>
> This program start 10 tasks and each task is an SSH connection on your machine by the 127.0.0.1 address.
>
> Change just the login and password to adjust it
>
Thanks for your effort but I don't think that this is really related to my
problem: you receive events in your Task, quite true, but these events are
meant to arrive before the Main() exits. You disconnect just before the end
of Main() but I want to have a Timer which keeps the Task alive waiting for
events _after_ Main() finished execution. Or did I oversee something there?
BTW, I suppose your file mode constants are wrong. You declared, e.g.
S_IRWXU = 0000700 which is totally valid and correct in C but AFAIK Gambas
does not recognise the leading-0 syntax for octals so you get a decimal 700
instead of the octal 0700 ;-)
Regards,
Tobi
More information about the User
mailing list