bryner told me of another way to do this. If you want to make it a member of
another XPCOM class, you can keep a refcount of how many times the class for
which its a member of was made, and when the last copy of that class is in
its destructor, delete the XPCOM object.
"Vladimir Bossicard" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have an XPCom compoent and I want it to be instanciated at least
> once.
> That means that all further instanciations will refer to the same
> object.
>
> What is the best way to achieve that?
>
> Thanks for your tips
>
> Vladimir