Re: 'new Pkcs11()' fails

Viktor Tarasov <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <ab2b7aa6-94c9-4e9e-91c9-8c1d217163a5@a32g2000yqm.googlegroups.com>
On Nov 2, 2:10 pm, Viktor Tarasov <[email protected]> wrote:
> Hi,
>
> in my xulrunner application, that I've compiled with the current
> mozilla sources, I cannot instantiate the Pkcs11 DOM object.
>
> This code
> try {
>     var Pkcs11 = new Components.Constructor("@mozilla.org/security/
> pkcs11;1", "nsIDOMPkcs11");
>     var myPkcs11 = new Pkcs11();
> ......
>  throws an error at the 'new Pkcs11()' line:
> error [Exception... "Component returned failure code: 0x80570015
> (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]"
> nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)"
>
> Anybody can help me, please?
>
> It's working (in DEBUG mode), compiled from the sources  with
> MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .


It's working in RELEASE mode when compiled from the  sources  with
MOZ_CO_DATE="14 Apr 2009 13:00 PDT" .


>
> Kind wishes,
> Viktor Tarasov.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.