Hi Carsten,

     Actually the window just hide when close so removeNotify()
didn't get through Java3D to cleanup the canvas.

     A better fix is to add

  ef.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
(default is HIDE_ON_CLOSE)

instead of my previous suggestion when only cleanup when ALL
windows are close.

Thanks.

- Kelvin
-----------
Java 3D Team
Sun Microsystems Inc.

Carsten Friedrich wrote:

> Kelvin,
>
>
>>     The underlying D3D context fail to destroy so after
>>a certain number of time it will run out of resource
>>and switch to emulation mode.
>>
>>     To fix it, add
>>
>>
>>   ef.addWindowListener(new WindowAdapter() {
>>      public void windowClosing(WindowEvent e) {
>>simpleU.removeAllLocales();
>>      }
>>   });
>>
>>in engine/EngApp.java
>>
>>
>
> thanks for your suggestion. I tried it, but it does not seem to have any
> effect.
> I added a println to make sure the windowClosing method actually gets
> called,
> which it does. In one of my other Java3D applications it seems to delay the
> out
> of memory problem but also does not prevent it from eventually happening.
>
> Carsten
>
>
>
>

===========================================================================
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".

Reply via email to