[Gambas-user] I can't believe this

Benoît Minisini gambas at ...1...
Tue Oct 9 01:15:35 CEST 2012


Le 09/10/2012 01:09, RICHARD WALKER a écrit :
> Something is happening to a variable in a program I am writing which I
> cannot explain and can find no reason behind it.
>
> A public boolean is set in one procedure and tested in another in the
> same class file. In between, it is changed, somehow,  from True to
> False.
>
> If I set the default value of the boolean as True in its public
> declaration, then the value in the procedure which tests it will see
> True - not always, but more often than it should.
>
> There are only two procedures in which the variable value is altered.
> Each of these procedures can call the procedure where the value is
> tested. At the call to the testing procedure the value may be True but
> the testing procedure sees False.
>
> What could possibly be going on?
>

It's impossible to guess without seeing the source code.

-- 
Benoît Minisini




More information about the User mailing list