Oouch,
> private void finalize() {
> System.out.println("BranchGroup finalized");
> }
>
this is definitely not the way to do it. This is a AntiPattern in Java!!!
When overriding finalize make sure you use this construct
public void finalize() java.lang.Throwable {
// this is very important, never forget it. The super class could free
memory of native code
super.finalize();
// your code/ print outs
// watch out not to cause an exception. it will not be reported, since the
system will catch them silently
....
}
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".