<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://2295/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Aaron,</div><div><br></div><div>How do you create your CA class?  Did you extend the helper (ndn::StackHelper) and use a new instance of ObjectFactory to create an instance of CA class by name?  And related question, did you assign a unique name in GetTypeId () function of your CA class?   Did you call AggregateObject method in Install method of ndn::StackHelper class?</div><div><br></div><div>I'm assuming that you're getting a segfault while calling Lookup.  If so, most likely your m_ca is simply not initialized.  And most likely, this could happen if you created an object, but didn't call AggregateObject method (this way GetObject<CA> () would return 0).</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Feb 16, 2013, at 6:54 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: Î¢ÈíÑźÚ; color: rgb(0, 0, 128); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hi, Alex</div><div>In pit/fib.h, the function Lookup() is a pure virtual funtion and the concrete one is defined in the fib-impl/pit-impl. I'm not sure how the Lookup in the fib/pit jumps to the one in the fib-impl/pit-impl?  I defined a pointer m_ca in the forwardingstrategy like m_pit,  but when executes Ptr<ca::Entry>m_ca->Lookup(), it doesn't jump to the function Lookup in the ca-impl.  Thanks a lot!</div><div> </div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>Aaron</span></div></div></blockquote></div></body></html>