Christian Biesinger wrote: EHLO Christian,
> Christophe Nowicki wrote: > > // _retval = (nsISupports **) &ret; // Does not work > > // *_retval = ret; // Segfault > > NS_ADDREF(*_retval = ret); Ok, it's working. > > Who can I return *any* can of object from an method? > > It might be easier to use nsIVariant, though. Then you can use it > directly from JS, the conversions will be done automatically. Yes, I've switched to nsIVariant and It's working perfectly ;0) Best Regards, _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
