<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Turn on the forwarder log of ndnSIM to see what's actually going on. If you can't find the problem, please share the log here. That will be helpful in debugging the problem.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
-Muktadir</div>
<div id="appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> ndnSIM <ndnsim-bounces@lists.cs.ucla.edu> on behalf of nabil khemache via ndnSIM <ndnsim@lists.cs.ucla.edu><br>
<b>Sent:</b> Sunday, May 10, 2020 11:35 AM<br>
<b>To:</b> ndnsim@lists.cs.ucla.edu <ndnsim@lists.cs.ucla.edu><br>
<b>Subject:</b> [ndnSIM] Data forwarding backoff</font>
<div> </div>
</div>
<div>
<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>
</div>
</body>
</html>