<div dir="ltr"><span style="color:rgb(0,0,0);font-family:"times new roman"">Hi,</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">I am trying to add a new type of application by defining its own class. I think I have coded it right (e.g. TypeId method, and calling NS_LOG_COMPONENT_DEFINE ("PccApp"),</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">NS_OBJECT_ENSURE_REGISTERED (PccApp);</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">  TypeId</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">  PccApp::GetTypeId ()</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">  {</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">    static TypeId tid = TypeId ("PccApp")</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">    .SetParent<ndn::App> ()</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">    .AddConstructor<PccApp> ()</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">    ;</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">    return tid;</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">  }</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">But I get the below error.</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">PccApp not found", file=../src/core/model/type-id.cc, line=755</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">terminate called without an active exception</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">Could anyone please let me know what might be the issue?</span><br style="color:rgb(0,0,0);font-family:"times new roman""><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">Best Regards,</span><br style="color:rgb(0,0,0);font-family:"times new roman""><span style="color:rgb(0,0,0);font-family:"times new roman"">Fatemeh Goudarzi</span><br></div>