[EMAIL PROTECTED] wrote:

> [EMAIL PROTECTED] wrote ([EMAIL PROTECTED])
> > Hello,
> >
> > I have a problem with jdk1.1.6v3a/glibc2. The problem is with
> > the finalize() methods which does not get invoked in my code.
> > Jdk1.1.5v7/glibc2 works fine (ie. the finalize() method is called).
> > Anyone got any idea why?
> > (I tried to create a small example which shows the problem
> > but finalize() get's called for the small example:(
>
> Some additional information might be in order..
> I force the finalizers to be run using System.runFinalizersOnExit(true)
> so I expect that, even though finalization might not run immediately,
> it should run when the VM exits..
>
> Marcel
> --
> "Yields falsehood when preceded by its quotation"
> yields falsehood when preceded by its quotation

Try running System.gc() after all references to the object are null.  This
should force the finalizer to run.
hopr this helps
Peter Johnson
[EMAIL PROTECTED]

Reply via email to