[ndnSIM] Still getting an exception (bad weak_ptr)

Junxiao Shi shijunxiao at email.arizona.edu
Wed Nov 9 08:44:46 PST 2016

Hi John

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
When a packet is created directly without make_shared, undefined behavior
occurs which is usually bad_weak_ptr.

Yours, Junxiao

On Nov 9, 2016 07:53, "John Baugh" <jpbaugh at umich.edu> wrote:
>      ndn::Data tempD;
>      myContentStore.insert(tempD);
> Shouldn't I just be able to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161109/50683226/attachment.html>

More information about the ndnSIM mailing list