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

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to