"Dmitry Dartz" <[EMAIL PROTECTED]> a écrit :

If I understood you correctly, the code sequence would look like this:
[snip]

Yes.

Regarding SSL, I'm not quite agreed with you.

No, this kind of crash is a bug. and AFAIR this one is in bugzilla.

In addition to missed SDK header,  NS_NewProfileDirServiceProvider returns
class instance, not interface.
Take a look at this:

nsresult NS_NewProfileDirServiceProvider(PRBool aNotifyObservers,
                                        nsProfileDirServiceProvider**
aProvider)

it returns nsProfileDirServiceProvider, not nsIDirectoryServiceProvider as
many other API functions do.
As a result I have to delete it or it will cause memory leaks. With
interfaces it would not happen because they are
reference-counting.

I'm not sure what your problem is, since you're using nsCOMPtr.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to