[Gambas-devel] Application.Busy (gambas2-1.9.43)

Benoit Minisini gambas at ...1...
Sat Sep 23 21:37:53 CEST 2006


On Saturday 23 September 2006 20:45, Charlie Reinl wrote:
> Salut Benoît,
>
> Application.Busy INC and DEC works fine, ... BUT
>
> If by any reason the DEC ditn't arrive, the next INC work like every INC,
> but the next DEC is the first INC.
>
> INC Application.Busy	(0 + 1 = 1)
> DEC Application.Busy (1 - 1 = 0) ' but not reached so stays 1
> INC Application.Busy	(1 + 1 = 2)
> DECApplication.Busy	(2 - 1 = 1)
>
> This can happend if you work with processes.
>
> I Think Application.Busy= true and Application.Busy=False would be better.
>
> I know I can set it to 0, before make an INC Application.Busy, but thats 2
> lines !
>
> Amicalment
> Charlie
>

Application.Busy needs to be an integer, otherwise you cannot imbricate code 
that needs to show a busy cursor.

Regards,

-- 
Benoit Minisini





More information about the Devel mailing list