I had the same issue. It appeared to be caused by some recent commit (maybe e6c07b5?) since the code worked fine with v0.2.3 but raised the mentioned error with v0.2.4.<div><br></div><div>Thanks,</div><div>Yaogong<br><br><div class="gmail_quote">
On Sun, Feb 17, 2013 at 2:06 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div class="im"><div>On Feb 17, 2013, at 12:07 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com" target="_blank">shock.jiang@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div>
hi all,<div><span style="white-space:pre-wrap">   </span>I met a error message said: <br><div><span style="white-space:pre-wrap">      </span>"msg="Limits are enabled, but the selected forwarding strategy does not support limits. Please revise your scenario", file=../src/ndnSIM/helper/ndn-stack-helper.cc, line=311<div>
terminate called without an active exception"</div><div><span style="white-space:pre-wrap">    </span></div><div><span style="white-space:pre-wrap"> </span>I think I use the right Fowarding strategy:</div><div><div>ccnxHelper.SetForwardingStrategy ("ns3::ndn::fw::BestRoute::PerOutFaceLimits",</div>
<div>                                   "Limit", "ns3::ndn::Limits::Window");</div><div>ccnxHelper.EnableLimits(true, Seconds(0.2), 40, 1100);</div></div><div><br></div><div>What's wrong? anyone can help?<span style="white-space:pre-wrap"> </span></div>
</div></div></div></blockquote><div><br></div></div>The strategy is right, it is strange that you're getting the error.  Can you copy/paste here a code from your scenario from creation of the helper till calling Install (Install should be called last, after setting limits and selecting the strategy)?<div>
<br></div><div>---</div><div>Alex<div class="im"><br><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div><div><div><div>
<div><div style="color:rgb(34,34,34);font-size:small;font-family:arial"><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div>
<hr align="left" color="#b5c4df" size="1" style="color:rgb(34,34,34);font-size:small;font-family:arial;width:210px;min-height:1px"><div style="color:rgb(34,34,34);font-size:small;font-family:arial"><font face="garamond, serif"><div>
<span style="font-size:10.5pt">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size:10.5pt"><br></span></div><div><span style="font-size:10.5pt"><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size:10.5pt"><font color="#666666">Dept. of Computer Science and Technology,</font></span></div>
<div><span style="font-size:10.5pt"><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div></div></div></div></div></blockquote></div></div></div><br>_______________________________________________<br>

ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>============================<br>Yaogong Wang, PhD Candidate<br>Department of Computer Science<br>North Carolina State University<br><a href="http://www4.ncsu.edu/~ywang15/" target="_blank">http://www4.ncsu.edu/~ywang15/</a><br>
============================
</div>