> nsCOMPtr<nsISupports> psm(do_GetService(@mozilla.org/psm;1"));
I have found this mail explaining why do_GetService can't be used: http://www.mail-archive.com/[email protected]/msg04076.html After that, I have constructed this code, but one argument is missing in GetService() call: nsCOMPtr<nsIServiceManager> svcMgr; rv = NS_GetServiceManager(getter_AddRefs(svcMgr)); if (NS_FAILED(rv)) return rv; nsCOMPtr<nsISupports> svcPsm; rv = svcMgr->GetService("@mozilla.org/psm;1", ?What here?, svcPsm) if (NS_FAILED(rv)) return rv; I have above code in NPP_New() (together with other initialisation code). Do I have to release above COM pointers (svcMgr & svcPsm)? How do I release them in NPP_Destroy()? Thank you very much for your help. :) _______________________________________________ mozilla-crypto mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-crypto
