[EMAIL PROTECTED] wrote:
> // printListener  inherited from nsiWebProgressListener
> printListener = new MyListener(); // can be anywhere in code

This has a refcount of 0.

> // somewhere else in code
> printing->Print(settings, printListener);

This violates a fundamental rule about passing XPCOM objects to methods.

I suggest reading the XPCOM documentation...

-Boris
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to