My program reads from a large data file and constructs a 3D scene
of brain map. It works well for the first time of data loading.
If I open another data file, it's supposed to load new data
and construct a new scene (branchGroup) on the same panel. (That
means I need to remove old scene and hopefully release all memories
that it used). but there comes the out of memory error.
I used this method to remove old scene:
mSimpleUniverse.getLocale().removeBranchGraph(mScene);
mScene = null;
...
mScene = constructNewBranchGroup();
mSimpleUniverse.addBranchGraph(mScene);
Does really released all memory? The old scene has one transformGroup
which has thousands of objects. How can I release memory used by
those objects?
thanks a lot,
Ruopeng
===========================================================================
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".