[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns-users] Scheduler Error message



	
	Add this patch, and this type of error will be more accurate.


On 9 Sep 1999, Yuri Pryadkin wrote:

> This may happen if you schedule an event that's already in the
> scheduler's queue.  Like, scheduling a timer for the second time
> without canceling it first.
> 
>  -Yuri
> 
> [email protected] writes:
> 
> > I am trying to run a simulation which lasts hundreds of seconds. TCP
> > Reno works OK as the transport layer. However, my own transport
> > protocol terminates early with the following error message:
> >  
> > > Scheduler: Event UID not valid! 
> > 
> > Could anyone point me to possible causes for this error?
> > 
> > many thanks,
> > rik wade
> 

                                      '''
                                     (o -)
---------------------------------oOO--(-)--OOo--------------------------
                                 Pascal ANELLI
 UPMC                                           | Tel : 33-1-44-27-71-29
 LIP 6 : Laboratoire d'Informatique de Paris VI | Fax : 33-1-44-27-74-95
 8, Rue du capitaine Scott                      |
 75015 PARIS        FRANCE                      | Bureau : C 654
 Access: http://www.lip6.fr/Laboratoire/acces.html
   _       __o    o                             |
 ___\o_  _'\<,_  <|\        E-mail: [email protected]
 ~~~~~~ (_)/_(_) _\         URL   : http://www.lip6.fr/rp/~pan
--------------------------------(__)------(__)--------------------------


Index: scheduler.cc
===================================================================
RCS file: /archive/cvs/cvsroot/diffserv/ns-2/scheduler.cc,v
retrieving revision 1.3
diff -c -b -r1.3 scheduler.cc
*** scheduler.cc	1999/05/19 16:20:31	1.3
--- scheduler.cc	1999/08/23 17:15:26
***************
*** 74,79 ****
--- 74,85 ----
  	}
  
  	e->uid_ = uid_++;
+ 	if (uid_ == INT_MAX) {
+ 		printf("Scheduler: space of UID exhausted!\n\n");
+ 	}
+ 
+ 		
  	e->handler_ = h;
  	double t = clock_ + delay;
  	e->time_ = t;