I found that the memory leak problem was associated with the Canvas3D
itself.  Whenever I let the Canvas3D be "garbage collected" and created
another Canvas3D my machine used up about 8 to 12 megabytes of additional
memory.  The garbage collection of various scene graph objects seemed to
work fine.

My work around is to create a single Canvas3D object and clear all data from
it when it is no longer used.  I then reuse the Canvas3D for the next
dialog.
In my application, I can get away with this because only one 3d view is
needed
at a time.

Glenn



----- Original Message -----
From: "Alessandro borges" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 08, 2003 8:06 AM
Subject: Re: [JAVA3D]


If your universe is created when your JDialog
instance is opened, try to clean up your
SimpleUniverse object, by calling :

 myUniverse.cleanup();
 /*myUniverse is your SimpleUniverse instance*/


Alessandro



 --- Osama Abdalah <[EMAIL PROTECTED]>
escreveu: > when adding many branch groups and
transform groups
> to
> canvas3D added to a JDialog component,no memory is
> cleared when the dialog is closed and all memory
> allocated is not dealocated which makes a large
> problem,Howcan i solve this problem?
>
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
>
>
===========================================================================
> 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".

_______________________________________________________________________
Desafio AntiZona: participe do jogo de perguntas e respostas que vai
dar um Renault Clio, computadores, cāmeras digitais, videogames e muito
mais! www.cade.com.br/antizona

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

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