<div dir="ltr">You are all awesome!  Thanks a ton.  It worked.<div><br></div><div>It would be great if some documentation existed that explained that aspect of the packets.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 11:44 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi John</p>
<p dir="ltr">Many places in NFD and ndn-cxx assume the packet (Interest or Data or Nack) are created with make_shared, even if the API takes a reference instead of shared_ptr.<br>
When a packet is created directly without make_shared, undefined behavior occurs which is usually bad_weak_ptr.</p>
<p dir="ltr">Yours, Junxiao</p>
<p dir="ltr">On Nov 9, 2016 07:53, "John Baugh" <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:<br>
><br>
>      ndn::Data tempD;<span class=""><br>
>      myContentStore.insert(tempD); <br>
><br>
> Shouldn't I just be able to do this?</span></p>
</blockquote></div><br></div>