[ns] Question on scheduler/timer-handler error
Geoffrey M. Garner
gmg1 at att.net
Wed Feb 25 21:49:42 PST 2004
I am getting the error message:
Scheduler: Event UID not valid!
It is produced by the function schedule of the class scheduler. In this particular case, the function resched of the TimerHandler class is invoked, with a delay argument.
This causes the function _sched of the TimerHandler class to be invoked (it is an inline function), also with the argument delay. This then invokes
the function schedule of the Scheduler class, with the argurments handler* (pointer to the current timer handler), &event (pointer to the member event_ of the
timer handler class, and the above delay argument.
The problem appears to be that the event pointer is not pointing to anything valid, and the resulting uid field contains garbage and causes the error.
Does anyone have any insight as to how and/or where the event pointer is set. I cannot find this in the ns-2 code. event_ is a member of the timer handler
class; I cannot see where else it would be set. It is not an argument to any of these functions.
Any information on this would be greatly appreciated.
gmgarner at comcast.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ns-users