Jon Yurek wrote:

I wrote a component that I need for my project, and it works fine on
my machine (of course). The problem is that on some other machines in
the office, the component crashes firefox when it gets used. I
compiled the component using the Firefox 1.0 release. One of the
machines crashing is using 1.0 and one is using 1.0PR. All of the
working machines are using 1.0. The component was compiled using
Microsoft VS6. All the machines are running Windows XP SP1.

When Firefox tries to load the component, I get the error "Invalid
entry point ??1nsAutoString@@[EMAIL PROTECTED] not found in xpcom.dll" twice,
then it brings up the feedback agent.

I was told this is because I was building for a specific build of
firefox and to rebuild using the Gecko SDK.

This doesn't really make sense to me since I was building against the
1.0 release and it was crashing on 1.0 release binaries. That's fine,
though, if I can use the Gecko SDK and get it to work. But I've tried
using the Gecko SDK, but it's lacking the xmlextras, which I need to
build. Where can I get the necessary files?

Can anyone point me in the right direction?




nsAutoString is a private internal string class. Using it in your components means that your components may not be compatible with other versions of Mozilla. You should instead compile your component against the Gecko SDK. For Firefox 1.0 (and Mozilla 1.7) or later, you can use the Gecko SDK that ships with Mozilla 1.7. I'd recommend using the Gecko SDK that shipped with Mozilla 1.7.5:
ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/gecko-sdk-i586-pc-msvc-1.7.5.zip


You can find some documentation about the frozen XPCOM interfaces including the functions for working with strings here:
http://developer-test.mozilla.org/xpcom/api/


You should take care to only link against functions that are frozen. (Look for @status FROZEN in the header file comments.)

Some more info here: http://wiki.mozilla.org/index.php/Gecko:SDK (under construction)

-Darin
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to