[Gambas-user] Gambas is not multi-threaded, but...

Benoît Minisini gambas at ...1...
Tue Aug 28 16:44:10 CEST 2012


Le 28/08/2012 14:28, Olivier Cruilles a écrit :
> Hi Benoit,
>
> I try to use this new feature but it does not work on my PC.
>
> Do you have a little project as example please ?
>
> Fedora 14
> Gambas 3  rev#5092
>
> PS: I don't see any gb.task in the list of components in the IDE
>
> Cordialement,
>
> Olivier Cruilles
> Mail: linuxos at ...1896...
>

gb.task does not exist anymore. The Task class is now part of the 
interpreter.

To create a task, you just have to create your own "MyTask" class that 
inherits Task, and that have a public Main method that takes no argument.

Then instanciate the task anywhere in your code. Give it an event name 
if you want to catch the Kill, Read or Error events.

Regards,

-- 
Benoît Minisini




More information about the User mailing list