Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem registering a scriptable extension

0 views
Skip to first unread message

rincewind

unread,
Nov 13, 2009, 8:10:39 PM11/13/09
to
I'm trying to create an NPAPI plugin, packaged as extension, and so
far I cannot even get my code to run (I put debug breaks in all 3
exported functions: NP_GetEntryPoints, NP_Initialize and NP_Shutdown,
and they haven't been hit).

When I feed Firefox 3.5.5/Windows with an XPI archive, the extension
seems to get installed - at least, it appears in the extension list.
Also, I can see my interface in xpti.dat file, and it is present in
Components.interfaces at runtime.

But when I'm trying to call a native method from JavaScript, it gives
an error: someFunc is not a function.

Georg Fritzsche

unread,
Nov 19, 2009, 8:57:28 AM11/19/09
to
On Nov 14, 2:10 am, rincewind <cctv.s...@gmail.com> wrote:
> I'm trying to create an NPAPI plugin, packaged as extension, and so
> far I cannot even get my code to run (I put debug breaks in all 3
> exported functions: NP_GetEntryPoints, NP_Initialize and NP_Shutdown,
> and they haven't been hit).

You could try to profile FF with DependencyWalker to see if it at
least loads your DLL.
If it does and your entry points are correctly exported and there are
no missing libraries that your plugin tries to delay-load, it could be
that the version info in the DLL doesn't match the version you
register the plugin with - FF on windows checks that before calling
NP_GetEntryPoints().

HTH,
Georg

0 new messages