Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Geck Embedding - releasing resources

1 view
Skip to first unread message

krithika

unread,
May 3, 2007, 3:20:32 AM5/3/07
to
I have embedded gecko in my java app and I open windows , load URLS ,
printPreview and finally close them.

I would like to know the instances that aught to be released.So far I
have not done anything expect for closing the Window I open.

These are instances i have

1. nsIWebBrowser
2. nsIWebNavigation
3. nsIPrintSettings
4. nsIBaseWindow
5. nsIWindowCreator
6. nsIWebBrowserPrint
7.


Please advice.

regards,
Krithika

Boris Zbarsky

unread,
May 3, 2007, 3:30:34 AM5/3/07
to
krithika wrote:
> I would like to know the instances that aught to be released.

Everything you're holding references to, once you're done with it....

-Boris

krithika

unread,
May 3, 2007, 6:24:28 AM5/3/07
to


Do we need to release even when using javaxpcom.?If yes how?

Thanks in Advance,
Krithika

Javier Pedemonte

unread,
May 7, 2007, 12:07:21 PM5/7/07
to
krithika wrote:
> Do we need to release even when using javaxpcom.?If yes how?

JavaXPCOM takes care of releasing XPCOM references whenever the
associated Java object is garbage collected.


javier pedemonte

0 new messages