Always instantiate it through the service manager. It will be
treated as a "service". The service manager will check to see
if an instance already exists and return a pointer to the
component instead of creating a new one.

Vladimir Bossicard wrote:

> I have an XPCom compoent and I want it to be instantiated at 
> least once. That means that all further instantiations will 
> refer to the same object.


Regards,
Rick


Reply via email to