peter johnson wrote ([EMAIL PROTECTED])
> [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..
>
> Try running System.gc() after all references to the object are null. This
> should force the finalizer to run.
> hopr this helps
I've tries this (have a seperate thread call System.gc() every 2 seconds.
This same thread also runs System.runFinalization()) but it doesn't help.
As my application depends on finalizers being run I'm stuck with jdk1.1.5 for
now...
Marcel Ammerlaan