Steven Katz wrote:

> I can't seem to get a handle on what is causing the problem below.
> 
> In particular, why should the AddRef in the running mozilla case belong to
> nsBinaryInputStream?  I have stepped through the debugger and found that
> QueryInterface and Release for this same object don't refer back to
> nsBinaryInputStream, but to nsServiceManagerImpl as you would expect.  How can
> this be?
> 
> Could someone help me out here?  Is it possible I am linking my plugin
> incorrectly?  I am currently linking it against the xpcom.lib.  Is there
> something else I need to do?
> 
> Steve Katz


Hi Steven,

The last stack track you posted showed the code blowing up
somewhere inside the CJavaPluginFactory constructor. I can't
see the code so I don't know whats going on here.

One thing that seemed odd is your CJavaPluginFactory::Create
method called the new operator thereby calling the CJavaPluginFactory
constructor. It then did a QI and if that failed called
CJavaPluginFactory::CreateInstance().

What is the CreateInstance() method doing in this case?

Also, I don't see where you are storing the |outer| pointer. Does
your plug-in need to support aggregation?

-rick


Reply via email to