"John Bandhauer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is not strictly true. If there are no references to the
> object then it will be collected the next time the JavaScript gc
> runs. This may not be until the document is unloaded. But it may
> be sooner. It depends on things like JS memory load and how many
> JS scripts get run (including things like event handlers). Or if
> a docuement gets loaded in some other window.
I see.
I thought the fact that my objects behind the xpconnect wrappers
have a very large memory footprint would force gc.
But I suppose the js engine has no way of knowing how big
objects behind wrappers are, so I'll have to do a manual gc...
> Currently there is
> no mechanism to force a gc from JavaScript code. There is a bug
> requesting this feature -
> http://bugzilla.mozilla.org/show_bug.cgi?id=57343 - but no
> consensus on where the method should be exposed and what code
> should have access to it. I just added a comment requesting
> others to give some opinions. Otherwise, my unilateral action is
> to take no action.
>
> John.
>
>
> >
> > Thanks
> > alex