Hi all,
Right now, I encounted some problem in implementing a scheduler in ns-2. The 
scheduler uses multi-queue to store the packets. So I used a PacketQueue** 
pq_list_ to variable to hold queues. I only delete it in the destructor of the 
scheduler, and access its element in the deque(), enque() methods of the 
scheduler. The scheduler class inherited from the Queue class. After three call 
to enque() method, the pq_list_ becomes null. I cann't figure out the reason. I 
debug the programe, but cann't find the right place that change the value of 
pq_list_  to zero.
 
Could you help me out?
 
Best regards,
Robbie 

Reply via email to