I think your problem is to keep the application alive. A way will be to make it as a deamon
At the beginning of the main sub set Application.deamon =true So your application will be alone be since you use the quit keyword Le 25 déc. 2012 15:17, "Tobias Boege" <tabo...@gmail.com> a écrit : > 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 > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user