Hi, Is your problem fixed ? I've tried to insert the proposed do_GetService line but psm is NULL and the error code returned is NS_ERROR_FAILURE.
I've also take a look at the https://bugzilla.mozilla.org/show_bug.cgi?id=309877 bug, but the two proposed patches are obsolete... I use the xulrunner-1.8.0.4 sources on a 64bits linux box compiled with gcc-3.4. Olivier Jamie Newton wrote: > Ahh very interesting, let me see what I can do. Thanks very much. I'll post > my findings here > > "timeless" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> ah. you tried to use nss w/o first probing it to encourage it to >> initialize itself. >> >> I believe it's sufficient to do something like: >> nsCOMPtr<nsISupports> psm = do_GetService("@mozilla.org/psm;1"); >> >> but it's been a few years. in short NSS needs to be initialized before >> it's used, otherwise it kills itself and its consumer for violating its >> api. in gecko, NSS is managed by PSM, which iirc is governed by that >> singleton contract, however i'm not certain it's the right contract. >> some breakpoints/tracing/testing might be warranted. >> > > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
