Alexis Nikichine wrote:
How can I simulate the failure of construction of an instance of an XPCOM
object in C++ ?

Use http://lxr.mozilla.org/seamonkey/source/xpcom/glue/nsIGenericFactory.h#419
(i.e. NS_GENERIC_FACTORY_CONSTRUCTOR_INIT instead of NS_GENERIC_FACTORY_CONSTRUCTOR)


Failure from that init method will cause the object construction to fail.

Searching http://lxr.mozilla.org/seamonkey/ for NS_GENERIC_FACTORY_CONSTRUCTOR_INIT should give you a lot of examples.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to