[Gambas-user] Closing a window in a DO LOOP

Benoit Minisini gambas at ...1...
Mon May 12 20:27:40 CEST 2008


On samedi 10 mai 2008, Pino Zollo wrote:
> Alle 19:17, venerdì 9 maggio 2008, hai scritto:
> Bon soir Benoit,
>
> > You cannot close a window if you are not in the same event loop level
> > than when you opened it.
>
> I did not know that there is more than one event loop...and I do not
> understand the implications.
> The reference manual is excellent but I miss a tutorial manual.
> I use just a small part of GAMBAS because I do not understand most of it.
>
> > This is the case there, as by using WAIT, you automatically enter a new
> > event loop.
>
> I need give CPU time to other parts of the application: I do not want that
> the other opened windows became frozen.
> I understand that WAIT is need by the "collaborative multitasking" of
> GAMBAS.
>
> > I don't know what you want to do, but I suggest using timers if your
> > actions depends on time.
>
> My project depends on absolute time and the computer clock must be well
> adjusted via Internet at the precision better than 1 second....
> Any how I will put a button on the form to force the exit from the loop so
> the user will be able to close the window.
>
> Any chance to have Threads ad Semaphores in GAMBAS 3 ?
>
> Thanks
> Pino

No change to have any thread and semaphores in Gambas 3! Gambas interpreter is 
single threaded.

Regards,

-- 
Benoit Minisini




More information about the User mailing list