<div dir="ltr"><div>Hi everyone,</div><div><br></div><div>i hope all of you are fine,</div><div><br></div><div>I'm trying one of the first forwarding mechanisms used in wireless networks: overhear and backoff forwarding</div><div><br></div><div><br></div><div>i used ns3::Simulator::Schedule to schedule the outface.sendInterest in the onOutgoingInterest function, and it works very well, i can see nodes keeping "silent".</div><div><br></div><div>But when i tried to use the same thing in the onOutgoingData with</div><div>ns3::Simulator::Schedule(ns3::MilliSeconds(rand()%2, &Face::sendData, &outFace, data)<br></div><div>i get a pointers related error "terminate called after throwing an instance of 'std::bad_weak_ptr'<br></div><div>  what():  bad_weak_ptr"</div><div><br></div><div>I don't have any idea which pointer is meant, and i'd be very pleased if anyone could give me a clue or another way to do it if i'm doing it wrong.</div><div><br></div><div>thanks in advance.</div><div><br></div><div>Best regards, Nabil<br></div><div><br></div><div><br></div></div>