Hi,

I compiled a TestGtkEmbed executable and it runs fine on a
pre-installed mozilla directory but does not run properly when I
create it. This is because it uses different components and/or shared
libraries in the two environments.

How could I learn which implementation of an interface gets executed,
and which .so file this implementation resides in? Is there a way to
display such information from source, say, with printfs?

Could I find out how components get linked and which components are
being used at runtime?

It says in documentation below that nsIClassInfo can help me display
info about an implementation. But does not give any information on how
to do this from an interface pointer. If I type

nsComPtr<nsIClassInfo> Info = do_QueryInterface(myInterface);
printf("%s",Info.classDescription);

I get error in compilation that there's no such member. Is this not
the way you use it?


----------
nsIClassInfo is an interface that provides information about a
specific implementation class, to wit:

a contract ID and class ID through which it may be instantiated; 
the language of implementation (C++, JavaScript, etc.); 
a list of the interfaces implemented by the class; 
flags indicating whether or not the class is threadsafe or a
singleton; and
helper objects in support of various language bindings
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to