I cobbled together a few methods and an interface which can't be too far
away from a solution
but after an hour or so with OptimizeIt I can't seem to make the final nine
yards.
The main java file attached is part of a class which extends JInternalframe.
The start point for this is in the dispose() method which for me seems a
sensible place as all my java3d view are in JInternalFrames. Others may kick
it off from a WindowListener.windowClosing(WindowEvent e)
So far I am detaching the rootBranchGroup(the one passed to SimpleUniverse),
recursively detaching
all the rootBranchGroup's children before removing all the children from
each node, removes or nullifies
anything seeming important on each node before finally invoking purge on any
objects which have registered
themselves as purgeable (i.e. they contain refernces to the scene which
require nulling).
If anybody (Doug G?) has any more ideas or the final solution then please
tell me, us.
cheers,
David Turland
PossibleGarbageCollector.java
Purgeable.java