Problem accessing module variable from TimerHandler expire method

Sergio Gutierrez <[email protected]> Fri, 17 Mar 2017 19:48:48 -0500
Newsgroups gmane.network.simulator.isi
Message-ID <CAO7Dj-fvwiwV03+fZN-jLr=2WqoNFbNw-aef5EaHgwWWAAm_Tg@mail.gmail.com>
Hello all.

I am facing a strange behavior when dealing with a Timer.

I am implementing a Timer which should modify an int module variable. The
module variable is set and modified within the module methods without
problems. However, when I implement a Timer and I call one of the module
methods from the expire timer method, if I try to access the module
variable, it is always 0. I even tried to modify the access specification
of the variable, changing from protected to public, or trying to access it
via a getter method, and the behavior is the same. The variable is always 0.

Could anybody provide any hint about this issue?

Thanks in advance for the attention.

-- 
Sergio GutiƩrrez