[Gambas-user] When do events happen - general question.
Benoit Minisini
gambas at ...1...
Fri Dec 16 18:48:37 CET 2005
On Friday 16 December 2005 13:58, nando wrote:
> Benoit,
>
> I need some help understanding when events are processed.
> I am getting some wierd results in a program
> ... and looking for deeper understanding.
>
> (1) If code is running in a SUB, will a TIMER event cause the timer code
> to happen immediately or when the SUB is completed ?
> Can a TIMER event happen while inside the TIMER event code?
>
> (2) I use the Serial Port Control in one project.
> When Sport_Read fires, can it fire while inside itself ?
>
> (3) If I want to make one particular SUB never end to perform a process,
> must I insert WAIT statements ?
>
> Thank you, again.
> -Fernando.
>
Events are processed:
* After the Main startup function has been terminated, and before or after a
top-level event handler is processed.
* When using a WAIT statement.
So:
1) No, never, except if you use WAIT.
2) Same remark.
3) Yes.
--
Benoit Minisini
More information about the User
mailing list