Hi,
(Using Linux, Fedora Core 5, Firefox 1.5.0.8,
mozilla-devel-1.7.13-1.1.fc5)
I'm trying to start creating XPCOM components using the
tutorial at <http://www.iosart.com/firefox/xpcom/>. After
adjusting paths in the Makefile so everything in the
example source builds, I copy the .xpt and .so to
/usr/lib/firefox-1.5.0.8/components, delete xpti.dat and
compreg.dat from my profile and restart Firefox. On running
the example Javascript I get the error:
"Components.classes[cid] has no properties"
From the iosart page I can see that this happens if:
1. On Windows you have built the component against a
different runtime to Gecko.
or
2. You have not copied the .so and .xpt files to the
components directory.
[EMAIL PROTECTED] src]$ ls
/usr/lib/firefox-1.5.0.8/components/{MyComponent.so,IMyComponent.xpt}
/usr/lib/firefox-1.5.0.8/components/IMyComponent.xpt
/usr/lib/firefox-1.5.0.8/components/MyComponent.so
Neither of the above applies.
If I grep for MyComponent:
[EMAIL PROTECTED] src]$ grep -i mycomponent
~/.mozilla/firefox/sz2obw1x.default/xpti.dat
127,IMyComponent.xpt,0,139,1164241019000
246,IMyComponent,{90758a97-a6f3-4ea4-8953-16bd2ee3a977},127,-1,1
but
[EMAIL PROTECTED] src]$ grep -i mycomponent
~/.mozilla/firefox/sz2obw1x.default/compreg.dat
[EMAIL PROTECTED] src]$
Is there anything else I can try to get this to work?
--
imalone
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom