Hi, Using mozilla 1.8a4 source, when I use this code in a component:

---
nsIInterfaceInfoManager* iimgr;
nsCOMPtr<nsIInterfaceInfo> interfaceInfo;

if((iimgr = XPTI_GetInterfaceInfoManager()) == NULL)
   return NS_ERROR_FAILURE;
iimgr->GetInfoForName(str, getter_AddRefs(interfaceInfo));
---

I get a segfault in last line. But if I don't use smart pointers:

---
nsIInterfaceInfoManager* iimgr;
nsIInterfaceInfo* interfaceInfo;

if((iimgr = XPTI_GetInterfaceInfoManager()) == NULL)
   return NS_ERROR_FAILURE;
iimgr->GetInfoForName(str, &interfaceInfo);
NS_IF_ADDREF(interfaceInfo);
---

All is ok. :?

--
Saudos
H�ctor
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to