Hi Carsten,

     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

to do the cleanup correctly.

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



Carsten Friedrich wrote:

> Kevin,
>
>
>>   Seems like resources is not free correctly.
>>Either Java3D bug or in the driver itself. We
>>have test to constantly add /remove Canvas3D
>>and didn't see the same problem.
>>
>>
>
> This problem occurs with virtually any program I write.
> You can try the applet
> http://www.it.usyd.edu.au/~carsten/LogicEngine
> which shows this behaviour on my machine. It
> occurs between the second and 4th. engine I create.
> try something like:
>
> a b c
> a ~b d
> e d ~c
>
> for input. I had to switch to the OpenGL Java3D version in the meantime,
> which shows almost the same problem. The difference is that the out
> of videomemory appears independently of whether I close windows before
> opening new ones. Maybe it's the driver. I'm running a Geforce 3 on an Asus
> board with the latest drivers.
>
> Carsten
>
>
>>>Hi,
>>>
>>>I have an application which uses Java3D (1.3 Beta2, D3D) on a windows
>>>
> 2000
>
>>>machine
>>>with an Asus Geforce 3 card and Java 1.4.0.
>>>
>>>I experience the following strange effect:
>>>
>>>I can open and close windows containing Canvas3D objects without
>>>
> problems.
>
>>>However, if I close
>>>_all_ windows containing canvas3D objects and then open a new one, I
>>>
> always
>
>>>get the following message:
>>>
>>>Fail to create hardware D3D Device, switch to use reference rasterizer. -
>>>D3DERR
>>>_OUTOFVIDEOMEMORY
>>>
>>>and things become very slow.
>>>
>>>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