On 12/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

In an nutshell, for those who don't want to read through all that: I'm
trying to call back from C++ to a JavaScript object using an interface I
created with an idl etc. etc. based on many newsgroup threads and coding
examples I've found.

However, the C++ call that's supposed to be invoking the method on the
JavaScript object is returning with 0x80004005 (NS_ERROR_FAILURE).
Clearly, I'm getting into the XPCOM dispatch code, but it's not relaying
into my JS object.

What can cause this nondescript failure code?

I haven't seen this error, but did you check that the interface got
registered (by looking in xpti.dat or evaluating
Components.interfaces.nsIPhishListener in JS console).

Also am I right in assuming that all the JS code is privileged? (In
that case you don't need the enablePrivilege call).

Nickolay



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

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

Reply via email to